~cairo-dock-team/ubuntu/oneiric/cairo-dock/2.4.0-0beta2

1 by Julien Lavergne
Import upstream version 1.5.5.3-repack0
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for cairo-dock 1.5.6-alpha0.
4
#
5
# Report bugs to <Fabrice Rey (fabounet@users.berlios.de)>.
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
  emulate sh
19
  NULLCMD=:
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in
26
  *posix*) set -o posix ;;
27
esac
28
29
fi
30
31
32
33
34
# PATH needs CR
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
  echo "#! /bin/sh" >conf$$.sh
45
  echo  "exit 0"   >>conf$$.sh
46
  chmod +x conf$$.sh
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
    PATH_SEPARATOR=';'
49
  else
50
    PATH_SEPARATOR=:
51
  fi
52
  rm -f conf$$.sh
53
fi
54
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
  as_unset=unset
58
else
59
  as_unset=false
60
fi
61
62
63
# IFS
64
# We need space, tab and new line, in precisely that order.  Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
68
as_nl='
69
'
70
IFS=" ""	$as_nl"
71
72
# Find who we are.  Look in the path if we contain no directory separator.
73
case $0 in
74
  *[\\/]* ) as_myself=$0 ;;
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
for as_dir in $PATH
77
do
78
  IFS=$as_save_IFS
79
  test -z "$as_dir" && as_dir=.
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
done
82
IFS=$as_save_IFS
83
84
     ;;
85
esac
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
89
  as_myself=$0
90
fi
91
if test ! -f "$as_myself"; then
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
  { (exit 1); exit 1; }
94
fi
95
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
done
100
PS1='$ '
101
PS2='> '
102
PS4='+ '
103
104
# NLS nuisances.
105
for as_var in \
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
  LC_TELEPHONE LC_TIME
109
do
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
    eval $as_var=C; export $as_var
112
  else
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
  fi
115
done
116
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
  as_expr=expr
121
else
122
  as_expr=false
123
fi
124
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
  as_basename=basename
127
else
128
  as_basename=false
129
fi
130
131
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
	 X"$0" : 'X\(//\)$' \| \
136
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
echo X/"$0" |
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
	    s//\1/
140
	    q
141
	  }
142
	  /^X\/\(\/\/\)$/{
143
	    s//\1/
144
	    q
145
	  }
146
	  /^X\/\(\/\).*/{
147
	    s//\1/
148
	    q
149
	  }
150
	  s/.*/./; q'`
151
152
# CDPATH.
153
$as_unset CDPATH
154
155
156
if test "x$CONFIG_SHELL" = x; then
157
  if (eval ":") 2>/dev/null; then
158
  as_have_required=yes
159
else
160
  as_have_required=no
161
fi
162
163
  if test $as_have_required = yes && 	 (eval ":
164
(as_func_return () {
165
  (exit \$1)
166
}
167
as_func_success () {
168
  as_func_return 0
169
}
170
as_func_failure () {
171
  as_func_return 1
172
}
173
as_func_ret_success () {
174
  return 0
175
}
176
as_func_ret_failure () {
177
  return 1
178
}
179
180
exitcode=0
181
if as_func_success; then
182
  :
183
else
184
  exitcode=1
185
  echo as_func_success failed.
186
fi
187
188
if as_func_failure; then
189
  exitcode=1
190
  echo as_func_failure succeeded.
191
fi
192
193
if as_func_ret_success; then
194
  :
195
else
196
  exitcode=1
197
  echo as_func_ret_success failed.
198
fi
199
200
if as_func_ret_failure; then
201
  exitcode=1
202
  echo as_func_ret_failure succeeded.
203
fi
204
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
  :
207
else
208
  exitcode=1
209
  echo positional parameters were not saved.
210
fi
211
212
test \$exitcode = 0) || { (exit 1); exit 1; }
213
214
(
215
  as_lineno_1=\$LINENO
216
  as_lineno_2=\$LINENO
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
220
  :
221
else
222
  as_candidate_shells=
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
do
226
  IFS=$as_save_IFS
227
  test -z "$as_dir" && as_dir=.
228
  case $as_dir in
229
	 /*)
230
	   for as_base in sh bash ksh sh5; do
231
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
	   done;;
233
       esac
234
done
235
IFS=$as_save_IFS
236
237
238
      for as_shell in $as_candidate_shells $SHELL; do
239
	 # Try only shells that exist, to save several forks.
240
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
  emulate sh
244
  NULLCMD=:
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
  # is contrary to our usage.  Disable this feature.
247
  alias -g '${1+"$@"}'='"$@"'
248
  setopt NO_GLOB_SUBST
249
else
250
  case `(set -o) 2>/dev/null` in
251
  *posix*) set -o posix ;;
252
esac
253
254
fi
255
256
257
:
258
_ASEOF
259
}; then
260
  CONFIG_SHELL=$as_shell
261
	       as_have_required=yes
262
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
  emulate sh
265
  NULLCMD=:
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
  # is contrary to our usage.  Disable this feature.
268
  alias -g '${1+"$@"}'='"$@"'
269
  setopt NO_GLOB_SUBST
270
else
271
  case `(set -o) 2>/dev/null` in
272
  *posix*) set -o posix ;;
273
esac
274
275
fi
276
277
278
:
279
(as_func_return () {
280
  (exit $1)
281
}
282
as_func_success () {
283
  as_func_return 0
284
}
285
as_func_failure () {
286
  as_func_return 1
287
}
288
as_func_ret_success () {
289
  return 0
290
}
291
as_func_ret_failure () {
292
  return 1
293
}
294
295
exitcode=0
296
if as_func_success; then
297
  :
298
else
299
  exitcode=1
300
  echo as_func_success failed.
301
fi
302
303
if as_func_failure; then
304
  exitcode=1
305
  echo as_func_failure succeeded.
306
fi
307
308
if as_func_ret_success; then
309
  :
310
else
311
  exitcode=1
312
  echo as_func_ret_success failed.
313
fi
314
315
if as_func_ret_failure; then
316
  exitcode=1
317
  echo as_func_ret_failure succeeded.
318
fi
319
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
  :
322
else
323
  exitcode=1
324
  echo positional parameters were not saved.
325
fi
326
327
test $exitcode = 0) || { (exit 1); exit 1; }
328
329
(
330
  as_lineno_1=$LINENO
331
  as_lineno_2=$LINENO
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335
_ASEOF
336
}; then
337
  break
338
fi
339
340
fi
341
342
      done
343
344
      if test "x$CONFIG_SHELL" != x; then
345
  for as_var in BASH_ENV ENV
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
        done
348
        export CONFIG_SHELL
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
fi
351
352
353
    if test $as_have_required = no; then
354
  echo This script requires a shell more modern than all the
355
      echo shells that I found on your system.  Please install a
356
      echo modern shell, or manually run the script under such a
357
      echo shell if you do have one.
358
      { (exit 1); exit 1; }
359
fi
360
361
362
fi
363
364
fi
365
366
367
368
(eval "as_func_return () {
369
  (exit \$1)
370
}
371
as_func_success () {
372
  as_func_return 0
373
}
374
as_func_failure () {
375
  as_func_return 1
376
}
377
as_func_ret_success () {
378
  return 0
379
}
380
as_func_ret_failure () {
381
  return 1
382
}
383
384
exitcode=0
385
if as_func_success; then
386
  :
387
else
388
  exitcode=1
389
  echo as_func_success failed.
390
fi
391
392
if as_func_failure; then
393
  exitcode=1
394
  echo as_func_failure succeeded.
395
fi
396
397
if as_func_ret_success; then
398
  :
399
else
400
  exitcode=1
401
  echo as_func_ret_success failed.
402
fi
403
404
if as_func_ret_failure; then
405
  exitcode=1
406
  echo as_func_ret_failure succeeded.
407
fi
408
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
  :
411
else
412
  exitcode=1
413
  echo positional parameters were not saved.
414
fi
415
416
test \$exitcode = 0") || {
417
  echo No shell found that supports shell functions.
418
  echo Please tell autoconf@gnu.org about your system,
419
  echo including any error possibly output before this
420
  echo message
421
}
422
423
424
425
  as_lineno_1=$LINENO
426
  as_lineno_2=$LINENO
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
  # line-number line after each line using $LINENO; the second 'sed'
433
  # does the real work.  The second script uses 'N' to pair each
434
  # line-number line with the line containing $LINENO, and appends
435
  # trailing '-' during substitution so that $LINENO is not a special
436
  # case at line end.
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
  sed -n '
441
    p
442
    /[$]LINENO/=
443
  ' <$as_myself |
444
    sed '
445
      s/[$]LINENO.*/&-/
446
      t lineno
447
      b
448
      :lineno
449
      N
450
      :loop
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452
      t loop
453
      s/-\n.*//
454
    ' >$as_me.lineno &&
455
  chmod +x "$as_me.lineno" ||
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
   { (exit 1); exit 1; }; }
458
459
  # Don't try to exec as it changes $[0], causing all sort of problems
460
  # (the dirname of $[0] is not the place where we might find the
461
  # original and so on.  Autoconf is especially sensitive to this).
462
  . "./$as_me.lineno"
463
  # Exit status is that of the last command.
464
  exit
465
}
466
467
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
  as_dirname=dirname
470
else
471
  as_dirname=false
472
fi
473
474
ECHO_C= ECHO_N= ECHO_T=
475
case `echo -n x` in
476
-n*)
477
  case `echo 'x\c'` in
478
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479
  *)   ECHO_C='\c';;
480
  esac;;
481
*)
482
  ECHO_N='-n';;
483
esac
484
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
  as_expr=expr
488
else
489
  as_expr=false
490
fi
491
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
  rm -f conf$$.dir/conf$$.file
495
else
496
  rm -f conf$$.dir
497
  mkdir conf$$.dir
498
fi
499
echo >conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
  as_ln_s='ln -s'
502
  # ... but there are two gotchas:
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
  # In both cases, we have to default to `cp -p'.
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507
    as_ln_s='cp -p'
508
elif ln conf$$.file conf$$ 2>/dev/null; then
509
  as_ln_s=ln
510
else
511
  as_ln_s='cp -p'
512
fi
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
515
516
if mkdir -p . 2>/dev/null; then
517
  as_mkdir_p=:
518
else
519
  test -d ./-p && rmdir ./-p
520
  as_mkdir_p=false
521
fi
522
523
if test -x / >/dev/null 2>&1; then
524
  as_test_x='test -x'
525
else
526
  if ls -dL / >/dev/null 2>&1; then
527
    as_ls_L_option=L
528
  else
529
    as_ls_L_option=
530
  fi
531
  as_test_x='
532
    eval sh -c '\''
533
      if test -d "$1"; then
534
        test -d "$1/.";
535
      else
536
	case $1 in
537
        -*)set "./$1";;
538
	esac;
539
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
	???[sx]*):;;*)false;;esac;fi
541
    '\'' sh
542
  '
543
fi
544
as_executable_p=$as_test_x
545
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
557
558
case X$ECHO in
559
X*--fallback-echo)
560
  # Remove one level of quotation (which was required for Make).
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
  ;;
563
esac
564
565
echo=${ECHO-echo}
566
if test "X$1" = X--no-reexec; then
567
  # Discard the --no-reexec flag, and continue.
568
  shift
569
elif test "X$1" = X--fallback-echo; then
570
  # Avoid inline document here, it may be left over
571
  :
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
  # Yippee, $echo works!
574
  :
575
else
576
  # Restart under the correct shell.
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
578
fi
579
580
if test "X$1" = X--fallback-echo; then
581
  # used as fallback echo
582
  shift
583
  cat <<EOF
584
$*
585
EOF
586
  exit 0
587
fi
588
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
590
# if CDPATH is set.
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
       echo_test_string=`eval $cmd` &&
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
    then
602
      break
603
    fi
604
  done
605
fi
606
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
610
  :
611
else
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
613
  # backslashes.  This makes it impossible to quote backslashes using
614
  #   echo "$something" | sed 's/\\/\\\\/g'
615
  #
616
  # So, first we look for a working echo in the user's PATH.
617
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
  for dir in $PATH /usr/ucb; do
620
    IFS="$lt_save_ifs"
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
625
      echo="$dir/echo"
626
      break
627
    fi
628
  done
629
  IFS="$lt_save_ifs"
630
631
  if test "X$echo" = Xecho; then
632
    # We didn't find a better echo, so look for alternatives.
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
636
      # This shell has a builtin print -r that does the trick.
637
      echo='print -r'
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640
      # If we have ksh, try running configure again with it.
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
      export ORIGINAL_CONFIG_SHELL
643
      CONFIG_SHELL=/bin/ksh
644
      export CONFIG_SHELL
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646
    else
647
      # Try using printf.
648
      echo='printf %s\n'
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
	 test "X$echo_testing_string" = "X$echo_test_string"; then
652
	# Cool, printf works
653
	:
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
	   test "X$echo_testing_string" = 'X\t' &&
656
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
	   test "X$echo_testing_string" = "X$echo_test_string"; then
658
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
	export CONFIG_SHELL
660
	SHELL="$CONFIG_SHELL"
661
	export SHELL
662
	echo="$CONFIG_SHELL $0 --fallback-echo"
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
	   test "X$echo_testing_string" = 'X\t' &&
665
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
	   test "X$echo_testing_string" = "X$echo_test_string"; then
667
	echo="$CONFIG_SHELL $0 --fallback-echo"
668
      else
669
	# maybe with a smaller string...
670
	prev=:
671
672
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674
	  then
675
	    break
676
	  fi
677
	  prev="$cmd"
678
	done
679
680
	if test "$prev" != 'sed 50q "$0"'; then
681
	  echo_test_string=`eval $prev`
682
	  export echo_test_string
683
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
	else
685
	  # Oops.  We lost completely, so just stick with echo.
686
	  echo=echo
687
	fi
688
      fi
689
    fi
690
  fi
691
fi
692
fi
693
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
696
ECHO=$echo
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699
fi
700
701
702
703
704
tagnames=${tagnames+${tagnames},}CXX
705
706
tagnames=${tagnames+${tagnames},}F77
707
708
exec 7<&0 </dev/null 6>&1
709
710
# Name of the host.
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715
#
716
# Initializations.
717
#
718
ac_default_prefix=/usr/local
719
ac_clean_files=
720
ac_config_libobj_dir=.
721
LIBOBJS=
722
cross_compiling=no
723
subdirs=
724
MFLAGS=
725
MAKEFLAGS=
726
SHELL=${CONFIG_SHELL-/bin/sh}
727
728
# Identity of this package.
729
PACKAGE_NAME='cairo-dock'
730
PACKAGE_TARNAME='cairo-dock'
731
PACKAGE_VERSION='1.5.6-alpha0'
732
PACKAGE_STRING='cairo-dock 1.5.6-alpha0'
733
PACKAGE_BUGREPORT='Fabrice Rey (fabounet@users.berlios.de)'
734
735
ac_unique_file="config.h.in"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
738
#include <stdio.h>
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
741
#endif
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
744
#endif
745
#ifdef STDC_HEADERS
746
# include <stdlib.h>
747
# include <stddef.h>
748
#else
749
# ifdef HAVE_STDLIB_H
750
#  include <stdlib.h>
751
# endif
752
#endif
753
#ifdef HAVE_STRING_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755
#  include <memory.h>
756
# endif
757
# include <string.h>
758
#endif
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
761
#endif
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
764
#endif
765
#ifdef HAVE_STDINT_H
766
# include <stdint.h>
767
#endif
768
#ifdef HAVE_UNISTD_H
769
# include <unistd.h>
770
#endif"
771
772
ac_subst_vars='SHELL
773
PATH_SEPARATOR
774
PACKAGE_NAME
775
PACKAGE_TARNAME
776
PACKAGE_VERSION
777
PACKAGE_STRING
778
PACKAGE_BUGREPORT
779
exec_prefix
780
prefix
781
program_transform_name
782
bindir
783
sbindir
784
libexecdir
785
datarootdir
786
datadir
787
sysconfdir
788
sharedstatedir
789
localstatedir
790
includedir
791
oldincludedir
792
docdir
793
infodir
794
htmldir
795
dvidir
796
pdfdir
797
psdir
798
libdir
799
localedir
800
mandir
801
DEFS
802
ECHO_C
803
ECHO_N
804
ECHO_T
805
LIBS
806
build_alias
807
host_alias
808
target_alias
809
INSTALL_PROGRAM
810
INSTALL_SCRIPT
811
INSTALL_DATA
812
am__isrc
813
CYGPATH_W
814
PACKAGE
815
VERSION
816
ACLOCAL
817
AUTOCONF
818
AUTOMAKE
819
AUTOHEADER
820
MAKEINFO
821
install_sh
822
STRIP
823
INSTALL_STRIP_PROGRAM
824
mkdir_p
825
AWK
826
SET_MAKE
827
am__leading_dot
828
AMTAR
829
am__tar
830
am__untar
831
build
832
build_cpu
833
build_vendor
834
build_os
835
host
836
host_cpu
837
host_vendor
838
host_os
839
CC
840
CFLAGS
841
LDFLAGS
842
CPPFLAGS
843
ac_ct_CC
844
EXEEXT
845
OBJEXT
846
DEPDIR
847
am__include
848
am__quote
849
AMDEP_TRUE
850
AMDEP_FALSE
851
AMDEPBACKSLASH
852
CCDEPMODE
853
am__fastdepCC_TRUE
854
am__fastdepCC_FALSE
855
SED
856
GREP
857
EGREP
858
LN_S
859
ECHO
860
AR
861
RANLIB
862
DSYMUTIL
863
NMEDIT
864
CPP
865
CXX
866
CXXFLAGS
867
ac_ct_CXX
868
CXXDEPMODE
869
am__fastdepCXX_TRUE
870
am__fastdepCXX_FALSE
871
CXXCPP
872
F77
873
FFLAGS
874
ac_ct_F77
875
LIBTOOL
876
INTLTOOL_DESKTOP_RULE
877
INTLTOOL_DIRECTORY_RULE
878
INTLTOOL_KEYS_RULE
879
INTLTOOL_PROP_RULE
880
INTLTOOL_OAF_RULE
881
INTLTOOL_PONG_RULE
882
INTLTOOL_SERVER_RULE
883
INTLTOOL_SHEET_RULE
884
INTLTOOL_SOUNDLIST_RULE
885
INTLTOOL_UI_RULE
886
INTLTOOL_XAM_RULE
887
INTLTOOL_KBD_RULE
888
INTLTOOL_XML_RULE
889
INTLTOOL_XML_NOMERGE_RULE
890
INTLTOOL_CAVES_RULE
891
INTLTOOL_SCHEMAS_RULE
892
INTLTOOL_THEME_RULE
893
INTLTOOL_SERVICE_RULE
894
INTLTOOL_POLICY_RULE
895
XGETTEXT
896
MSGMERGE
897
MSGFMT
898
INTLTOOL_EXTRACT
899
INTLTOOL_MERGE
900
INTLTOOL_UPDATE
901
INTLTOOL_PERL
902
ALL_LINGUAS
903
DATADIRNAME
904
USE_NLS
905
MSGFMT_OPTS
906
GMSGFMT
907
CATALOGS
908
CATOBJEXT
909
GMOFILES
910
INSTOBJEXT
911
INTLLIBS
912
PO_IN_DATADIR_TRUE
913
PO_IN_DATADIR_FALSE
914
POFILES
915
POSUB
916
MKINSTALLDIRS
917
GETTEXT_PACKAGE
918
COMPIL_VERBOSE_TRUE
919
COMPIL_VERBOSE_FALSE
920
COMPIL_WITH_GLITZ_TRUE
921
COMPIL_WITH_GLITZ_FALSE
922
PKG_CONFIG
923
PACKAGE_CFLAGS
924
PACKAGE_LIBS
925
GLITZ_CFLAGS
926
GLITZ_LIBS
927
LIBOBJS
928
LTLIBOBJS'
929
ac_subst_files=''
930
      ac_precious_vars='build_alias
931
host_alias
932
target_alias
933
CC
934
CFLAGS
935
LDFLAGS
936
LIBS
937
CPPFLAGS
938
CPP
939
CXX
940
CXXFLAGS
941
CCC
942
CXXCPP
943
F77
944
FFLAGS
945
PKG_CONFIG
946
PACKAGE_CFLAGS
947
PACKAGE_LIBS
948
GLITZ_CFLAGS
949
GLITZ_LIBS'
950
951
952
# Initialize some variables set by options.
953
ac_init_help=
954
ac_init_version=false
955
# The variables have the same names as the options, with
956
# dashes changed to underlines.
957
cache_file=/dev/null
958
exec_prefix=NONE
959
no_create=
960
no_recursion=
961
prefix=NONE
962
program_prefix=NONE
963
program_suffix=NONE
964
program_transform_name=s,x,x,
965
silent=
966
site=
967
srcdir=
968
verbose=
969
x_includes=NONE
970
x_libraries=NONE
971
972
# Installation directory options.
973
# These are left unexpanded so users can "make install exec_prefix=/foo"
974
# and all the variables that are supposed to be based on exec_prefix
975
# by default will actually change.
976
# Use braces instead of parens because sh, perl, etc. also accept them.
977
# (The list follows the same order as the GNU Coding Standards.)
978
bindir='${exec_prefix}/bin'
979
sbindir='${exec_prefix}/sbin'
980
libexecdir='${exec_prefix}/libexec'
981
datarootdir='${prefix}/share'
982
datadir='${datarootdir}'
983
sysconfdir='${prefix}/etc'
984
sharedstatedir='${prefix}/com'
985
localstatedir='${prefix}/var'
986
includedir='${prefix}/include'
987
oldincludedir='/usr/include'
988
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989
infodir='${datarootdir}/info'
990
htmldir='${docdir}'
991
dvidir='${docdir}'
992
pdfdir='${docdir}'
993
psdir='${docdir}'
994
libdir='${exec_prefix}/lib'
995
localedir='${datarootdir}/locale'
996
mandir='${datarootdir}/man'
997
998
ac_prev=
999
ac_dashdash=
1000
for ac_option
1001
do
1002
  # If the previous option needs an argument, assign it.
1003
  if test -n "$ac_prev"; then
1004
    eval $ac_prev=\$ac_option
1005
    ac_prev=
1006
    continue
1007
  fi
1008
1009
  case $ac_option in
1010
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011
  *)	ac_optarg=yes ;;
1012
  esac
1013
1014
  # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016
  case $ac_dashdash$ac_option in
1017
  --)
1018
    ac_dashdash=yes ;;
1019
1020
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021
    ac_prev=bindir ;;
1022
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023
    bindir=$ac_optarg ;;
1024
1025
  -build | --build | --buil | --bui | --bu)
1026
    ac_prev=build_alias ;;
1027
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028
    build_alias=$ac_optarg ;;
1029
1030
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1031
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032
    ac_prev=cache_file ;;
1033
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035
    cache_file=$ac_optarg ;;
1036
1037
  --config-cache | -C)
1038
    cache_file=config.cache ;;
1039
1040
  -datadir | --datadir | --datadi | --datad)
1041
    ac_prev=datadir ;;
1042
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043
    datadir=$ac_optarg ;;
1044
1045
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046
  | --dataroo | --dataro | --datar)
1047
    ac_prev=datarootdir ;;
1048
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050
    datarootdir=$ac_optarg ;;
1051
1052
  -disable-* | --disable-*)
1053
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054
    # Reject names that are not valid shell variable names.
1055
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057
   { (exit 1); exit 1; }; }
1058
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059
    eval enable_$ac_feature=no ;;
1060
1061
  -docdir | --docdir | --docdi | --doc | --do)
1062
    ac_prev=docdir ;;
1063
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064
    docdir=$ac_optarg ;;
1065
1066
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067
    ac_prev=dvidir ;;
1068
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069
    dvidir=$ac_optarg ;;
1070
1071
  -enable-* | --enable-*)
1072
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073
    # Reject names that are not valid shell variable names.
1074
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076
   { (exit 1); exit 1; }; }
1077
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078
    eval enable_$ac_feature=\$ac_optarg ;;
1079
1080
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082
  | --exec | --exe | --ex)
1083
    ac_prev=exec_prefix ;;
1084
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086
  | --exec=* | --exe=* | --ex=*)
1087
    exec_prefix=$ac_optarg ;;
1088
1089
  -gas | --gas | --ga | --g)
1090
    # Obsolete; use --with-gas.
1091
    with_gas=yes ;;
1092
1093
  -help | --help | --hel | --he | -h)
1094
    ac_init_help=long ;;
1095
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096
    ac_init_help=recursive ;;
1097
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098
    ac_init_help=short ;;
1099
1100
  -host | --host | --hos | --ho)
1101
    ac_prev=host_alias ;;
1102
  -host=* | --host=* | --hos=* | --ho=*)
1103
    host_alias=$ac_optarg ;;
1104
1105
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106
    ac_prev=htmldir ;;
1107
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108
  | --ht=*)
1109
    htmldir=$ac_optarg ;;
1110
1111
  -includedir | --includedir | --includedi | --included | --include \
1112
  | --includ | --inclu | --incl | --inc)
1113
    ac_prev=includedir ;;
1114
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1116
    includedir=$ac_optarg ;;
1117
1118
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1119
    ac_prev=infodir ;;
1120
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121
    infodir=$ac_optarg ;;
1122
1123
  -libdir | --libdir | --libdi | --libd)
1124
    ac_prev=libdir ;;
1125
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126
    libdir=$ac_optarg ;;
1127
1128
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129
  | --libexe | --libex | --libe)
1130
    ac_prev=libexecdir ;;
1131
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132
  | --libexe=* | --libex=* | --libe=*)
1133
    libexecdir=$ac_optarg ;;
1134
1135
  -localedir | --localedir | --localedi | --localed | --locale)
1136
    ac_prev=localedir ;;
1137
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138
    localedir=$ac_optarg ;;
1139
1140
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1141
  | --localstate | --localstat | --localsta | --localst | --locals)
1142
    ac_prev=localstatedir ;;
1143
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145
    localstatedir=$ac_optarg ;;
1146
1147
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148
    ac_prev=mandir ;;
1149
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150
    mandir=$ac_optarg ;;
1151
1152
  -nfp | --nfp | --nf)
1153
    # Obsolete; use --without-fp.
1154
    with_fp=no ;;
1155
1156
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157
  | --no-cr | --no-c | -n)
1158
    no_create=yes ;;
1159
1160
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162
    no_recursion=yes ;;
1163
1164
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166
  | --oldin | --oldi | --old | --ol | --o)
1167
    ac_prev=oldincludedir ;;
1168
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171
    oldincludedir=$ac_optarg ;;
1172
1173
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174
    ac_prev=prefix ;;
1175
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176
    prefix=$ac_optarg ;;
1177
1178
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179
  | --program-pre | --program-pr | --program-p)
1180
    ac_prev=program_prefix ;;
1181
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183
    program_prefix=$ac_optarg ;;
1184
1185
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186
  | --program-suf | --program-su | --program-s)
1187
    ac_prev=program_suffix ;;
1188
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190
    program_suffix=$ac_optarg ;;
1191
1192
  -program-transform-name | --program-transform-name \
1193
  | --program-transform-nam | --program-transform-na \
1194
  | --program-transform-n | --program-transform- \
1195
  | --program-transform | --program-transfor \
1196
  | --program-transfo | --program-transf \
1197
  | --program-trans | --program-tran \
1198
  | --progr-tra | --program-tr | --program-t)
1199
    ac_prev=program_transform_name ;;
1200
  -program-transform-name=* | --program-transform-name=* \
1201
  | --program-transform-nam=* | --program-transform-na=* \
1202
  | --program-transform-n=* | --program-transform-=* \
1203
  | --program-transform=* | --program-transfor=* \
1204
  | --program-transfo=* | --program-transf=* \
1205
  | --program-trans=* | --program-tran=* \
1206
  | --progr-tra=* | --program-tr=* | --program-t=*)
1207
    program_transform_name=$ac_optarg ;;
1208
1209
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210
    ac_prev=pdfdir ;;
1211
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212
    pdfdir=$ac_optarg ;;
1213
1214
  -psdir | --psdir | --psdi | --psd | --ps)
1215
    ac_prev=psdir ;;
1216
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217
    psdir=$ac_optarg ;;
1218
1219
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220
  | -silent | --silent | --silen | --sile | --sil)
1221
    silent=yes ;;
1222
1223
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224
    ac_prev=sbindir ;;
1225
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226
  | --sbi=* | --sb=*)
1227
    sbindir=$ac_optarg ;;
1228
1229
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231
  | --sharedst | --shareds | --shared | --share | --shar \
1232
  | --sha | --sh)
1233
    ac_prev=sharedstatedir ;;
1234
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237
  | --sha=* | --sh=*)
1238
    sharedstatedir=$ac_optarg ;;
1239
1240
  -site | --site | --sit)
1241
    ac_prev=site ;;
1242
  -site=* | --site=* | --sit=*)
1243
    site=$ac_optarg ;;
1244
1245
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246
    ac_prev=srcdir ;;
1247
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248
    srcdir=$ac_optarg ;;
1249
1250
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251
  | --syscon | --sysco | --sysc | --sys | --sy)
1252
    ac_prev=sysconfdir ;;
1253
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255
    sysconfdir=$ac_optarg ;;
1256
1257
  -target | --target | --targe | --targ | --tar | --ta | --t)
1258
    ac_prev=target_alias ;;
1259
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260
    target_alias=$ac_optarg ;;
1261
1262
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263
    verbose=yes ;;
1264
1265
  -version | --version | --versio | --versi | --vers | -V)
1266
    ac_init_version=: ;;
1267
1268
  -with-* | --with-*)
1269
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270
    # Reject names that are not valid shell variable names.
1271
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1273
   { (exit 1); exit 1; }; }
1274
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275
    eval with_$ac_package=\$ac_optarg ;;
1276
1277
  -without-* | --without-*)
1278
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279
    # Reject names that are not valid shell variable names.
1280
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1282
   { (exit 1); exit 1; }; }
1283
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284
    eval with_$ac_package=no ;;
1285
1286
  --x)
1287
    # Obsolete; use --with-x.
1288
    with_x=yes ;;
1289
1290
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291
  | --x-incl | --x-inc | --x-in | --x-i)
1292
    ac_prev=x_includes ;;
1293
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295
    x_includes=$ac_optarg ;;
1296
1297
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299
    ac_prev=x_libraries ;;
1300
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302
    x_libraries=$ac_optarg ;;
1303
1304
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1305
Try \`$0 --help' for more information." >&2
1306
   { (exit 1); exit 1; }; }
1307
    ;;
1308
1309
  *=*)
1310
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311
    # Reject names that are not valid shell variable names.
1312
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314
   { (exit 1); exit 1; }; }
1315
    eval $ac_envvar=\$ac_optarg
1316
    export $ac_envvar ;;
1317
1318
  *)
1319
    # FIXME: should be removed in autoconf 3.0.
1320
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324
    ;;
1325
1326
  esac
1327
done
1328
1329
if test -n "$ac_prev"; then
1330
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331
  { echo "$as_me: error: missing argument to $ac_option" >&2
1332
   { (exit 1); exit 1; }; }
1333
fi
1334
1335
# Be sure to have absolute directory names.
1336
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337
		datadir sysconfdir sharedstatedir localstatedir includedir \
1338
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339
		libdir localedir mandir
1340
do
1341
  eval ac_val=\$$ac_var
1342
  case $ac_val in
1343
    [\\/$]* | ?:[\\/]* )  continue;;
1344
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345
  esac
1346
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347
   { (exit 1); exit 1; }; }
1348
done
1349
1350
# There might be people who depend on the old broken behavior: `$host'
1351
# used to hold the argument of --host etc.
1352
# FIXME: To remove some day.
1353
build=$build_alias
1354
host=$host_alias
1355
target=$target_alias
1356
1357
# FIXME: To remove some day.
1358
if test "x$host_alias" != x; then
1359
  if test "x$build_alias" = x; then
1360
    cross_compiling=maybe
1361
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362
    If a cross compiler is detected then cross compile mode will be used." >&2
1363
  elif test "x$build_alias" != "x$host_alias"; then
1364
    cross_compiling=yes
1365
  fi
1366
fi
1367
1368
ac_tool_prefix=
1369
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371
test "$silent" = yes && exec 6>/dev/null
1372
1373
1374
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375
ac_ls_di=`ls -di .` &&
1376
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377
  { echo "$as_me: error: Working directory cannot be determined" >&2
1378
   { (exit 1); exit 1; }; }
1379
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1381
   { (exit 1); exit 1; }; }
1382
1383
1384
# Find the source files, if location was not specified.
1385
if test -z "$srcdir"; then
1386
  ac_srcdir_defaulted=yes
1387
  # Try the directory containing this script, then the parent directory.
1388
  ac_confdir=`$as_dirname -- "$0" ||
1389
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390
	 X"$0" : 'X\(//\)[^/]' \| \
1391
	 X"$0" : 'X\(//\)$' \| \
1392
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393
echo X"$0" |
1394
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395
	    s//\1/
1396
	    q
1397
	  }
1398
	  /^X\(\/\/\)[^/].*/{
1399
	    s//\1/
1400
	    q
1401
	  }
1402
	  /^X\(\/\/\)$/{
1403
	    s//\1/
1404
	    q
1405
	  }
1406
	  /^X\(\/\).*/{
1407
	    s//\1/
1408
	    q
1409
	  }
1410
	  s/.*/./; q'`
1411
  srcdir=$ac_confdir
1412
  if test ! -r "$srcdir/$ac_unique_file"; then
1413
    srcdir=..
1414
  fi
1415
else
1416
  ac_srcdir_defaulted=no
1417
fi
1418
if test ! -r "$srcdir/$ac_unique_file"; then
1419
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421
   { (exit 1); exit 1; }; }
1422
fi
1423
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424
ac_abs_confdir=`(
1425
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426
   { (exit 1); exit 1; }; }
1427
	pwd)`
1428
# When building in place, set srcdir=.
1429
if test "$ac_abs_confdir" = "$ac_pwd"; then
1430
  srcdir=.
1431
fi
1432
# Remove unnecessary trailing slashes from srcdir.
1433
# Double slashes in file names in object file debugging info
1434
# mess up M-x gdb in Emacs.
1435
case $srcdir in
1436
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437
esac
1438
for ac_var in $ac_precious_vars; do
1439
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440
  eval ac_env_${ac_var}_value=\$${ac_var}
1441
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443
done
1444
1445
#
1446
# Report the --help message.
1447
#
1448
if test "$ac_init_help" = "long"; then
1449
  # Omit some internal or obsolete options to make the list less imposing.
1450
  # This message is too long to be a string in the A/UX 3.1 sh.
1451
  cat <<_ACEOF
1452
\`configure' configures cairo-dock 1.5.6-alpha0 to adapt to many kinds of systems.
1453
1454
Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457
VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459
Defaults for the options are specified in brackets.
1460
1461
Configuration:
1462
  -h, --help              display this help and exit
1463
      --help=short        display options specific to this package
1464
      --help=recursive    display the short help of all the included packages
1465
  -V, --version           display version information and exit
1466
  -q, --quiet, --silent   do not print \`checking...' messages
1467
      --cache-file=FILE   cache test results in FILE [disabled]
1468
  -C, --config-cache      alias for \`--cache-file=config.cache'
1469
  -n, --no-create         do not create output files
1470
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472
Installation directories:
1473
  --prefix=PREFIX         install architecture-independent files in PREFIX
1474
			  [$ac_default_prefix]
1475
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476
			  [PREFIX]
1477
1478
By default, \`make install' will install all the files in
1479
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481
for instance \`--prefix=\$HOME'.
1482
1483
For better control, use the options below.
1484
1485
Fine tuning of the installation directories:
1486
  --bindir=DIR           user executables [EPREFIX/bin]
1487
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1488
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1489
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1490
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1491
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1492
  --libdir=DIR           object code libraries [EPREFIX/lib]
1493
  --includedir=DIR       C header files [PREFIX/include]
1494
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1495
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1496
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1497
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1498
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1499
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1500
  --docdir=DIR           documentation root [DATAROOTDIR/doc/cairo-dock]
1501
  --htmldir=DIR          html documentation [DOCDIR]
1502
  --dvidir=DIR           dvi documentation [DOCDIR]
1503
  --pdfdir=DIR           pdf documentation [DOCDIR]
1504
  --psdir=DIR            ps documentation [DOCDIR]
1505
_ACEOF
1506
1507
  cat <<\_ACEOF
1508
1509
Program names:
1510
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1511
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1512
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1513
1514
System types:
1515
  --build=BUILD     configure for building on BUILD [guessed]
1516
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517
_ACEOF
1518
fi
1519
1520
if test -n "$ac_init_help"; then
1521
  case $ac_init_help in
1522
     short | recursive ) echo "Configuration of cairo-dock 1.5.6-alpha0:";;
1523
   esac
1524
  cat <<\_ACEOF
1525
1526
Optional Features:
1527
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1530
  --enable-static[=PKGS]  build static libraries [default=yes]
1531
  --enable-fast-install[=PKGS]
1532
                          optimize for fast installation [default=yes]
1533
  --disable-dependency-tracking  speeds up one-time build
1534
  --enable-dependency-tracking   do not reject slow dependency extractors
1535
  --disable-libtool-lock  avoid locking (might break parallel builds)
1536
1537
Optional Packages:
1538
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1539
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1540
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1541
  --with-pic              try to use only PIC/non-PIC objects [default=use
1542
                          both]
1543
  --with-tags[=TAGS]      include additional configurations [automatic]
1544
1545
Some influential environment variables:
1546
  CC          C compiler command
1547
  CFLAGS      C compiler flags
1548
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549
              nonstandard directory <lib dir>
1550
  LIBS        libraries to pass to the linker, e.g. -l<library>
1551
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552
              you have headers in a nonstandard directory <include dir>
1553
  CPP         C preprocessor
1554
  CXX         C++ compiler command
1555
  CXXFLAGS    C++ compiler flags
1556
  CXXCPP      C++ preprocessor
1557
  F77         Fortran 77 compiler command
1558
  FFLAGS      Fortran 77 compiler flags
1559
  PKG_CONFIG  path to pkg-config utility
1560
  PACKAGE_CFLAGS
1561
              C compiler flags for PACKAGE, overriding pkg-config
1562
  PACKAGE_LIBS
1563
              linker flags for PACKAGE, overriding pkg-config
1564
  GLITZ_CFLAGS
1565
              C compiler flags for GLITZ, overriding pkg-config
1566
  GLITZ_LIBS  linker flags for GLITZ, overriding pkg-config
1567
1568
Use these variables to override the choices made by `configure' or to help
1569
it to find libraries and programs with nonstandard names/locations.
1570
1571
Report bugs to <Fabrice Rey (fabounet@users.berlios.de)>.
1572
_ACEOF
1573
ac_status=$?
1574
fi
1575
1576
if test "$ac_init_help" = "recursive"; then
1577
  # If there are subdirs, report their specific --help.
1578
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579
    test -d "$ac_dir" || continue
1580
    ac_builddir=.
1581
1582
case "$ac_dir" in
1583
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584
*)
1585
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586
  # A ".." for each directory in $ac_dir_suffix.
1587
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588
  case $ac_top_builddir_sub in
1589
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591
  esac ;;
1592
esac
1593
ac_abs_top_builddir=$ac_pwd
1594
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595
# for backward compatibility:
1596
ac_top_builddir=$ac_top_build_prefix
1597
1598
case $srcdir in
1599
  .)  # We are building in place.
1600
    ac_srcdir=.
1601
    ac_top_srcdir=$ac_top_builddir_sub
1602
    ac_abs_top_srcdir=$ac_pwd ;;
1603
  [\\/]* | ?:[\\/]* )  # Absolute name.
1604
    ac_srcdir=$srcdir$ac_dir_suffix;
1605
    ac_top_srcdir=$srcdir
1606
    ac_abs_top_srcdir=$srcdir ;;
1607
  *) # Relative name.
1608
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611
esac
1612
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614
    cd "$ac_dir" || { ac_status=$?; continue; }
1615
    # Check for guested configure.
1616
    if test -f "$ac_srcdir/configure.gnu"; then
1617
      echo &&
1618
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619
    elif test -f "$ac_srcdir/configure"; then
1620
      echo &&
1621
      $SHELL "$ac_srcdir/configure" --help=recursive
1622
    else
1623
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624
    fi || ac_status=$?
1625
    cd "$ac_pwd" || { ac_status=$?; break; }
1626
  done
1627
fi
1628
1629
test -n "$ac_init_help" && exit $ac_status
1630
if $ac_init_version; then
1631
  cat <<\_ACEOF
1632
cairo-dock configure 1.5.6-alpha0
1633
generated by GNU Autoconf 2.61
1634
1635
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637
This configure script is free software; the Free Software Foundation
1638
gives unlimited permission to copy, distribute and modify it.
1639
_ACEOF
1640
  exit
1641
fi
1642
cat >config.log <<_ACEOF
1643
This file contains any messages produced by compilers while
1644
running configure, to aid debugging if configure makes a mistake.
1645
1646
It was created by cairo-dock $as_me 1.5.6-alpha0, which was
1647
generated by GNU Autoconf 2.61.  Invocation command line was
1648
1649
  $ $0 $@
1650
1651
_ACEOF
1652
exec 5>>config.log
1653
{
1654
cat <<_ASUNAME
1655
## --------- ##
1656
## Platform. ##
1657
## --------- ##
1658
1659
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676
_ASUNAME
1677
1678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679
for as_dir in $PATH
1680
do
1681
  IFS=$as_save_IFS
1682
  test -z "$as_dir" && as_dir=.
1683
  echo "PATH: $as_dir"
1684
done
1685
IFS=$as_save_IFS
1686
1687
} >&5
1688
1689
cat >&5 <<_ACEOF
1690
1691
1692
## ----------- ##
1693
## Core tests. ##
1694
## ----------- ##
1695
1696
_ACEOF
1697
1698
1699
# Keep a trace of the command line.
1700
# Strip out --no-create and --no-recursion so they do not pile up.
1701
# Strip out --silent because we don't want to record it for future runs.
1702
# Also quote any args containing shell meta-characters.
1703
# Make two passes to allow for proper duplicate-argument suppression.
1704
ac_configure_args=
1705
ac_configure_args0=
1706
ac_configure_args1=
1707
ac_must_keep_next=false
1708
for ac_pass in 1 2
1709
do
1710
  for ac_arg
1711
  do
1712
    case $ac_arg in
1713
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715
    | -silent | --silent | --silen | --sile | --sil)
1716
      continue ;;
1717
    *\'*)
1718
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719
    esac
1720
    case $ac_pass in
1721
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722
    2)
1723
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724
      if test $ac_must_keep_next = true; then
1725
	ac_must_keep_next=false # Got value, back to normal.
1726
      else
1727
	case $ac_arg in
1728
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1729
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731
	  | -with-* | --with-* | -without-* | --without-* | --x)
1732
	    case "$ac_configure_args0 " in
1733
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734
	    esac
1735
	    ;;
1736
	  -* ) ac_must_keep_next=true ;;
1737
	esac
1738
      fi
1739
      ac_configure_args="$ac_configure_args '$ac_arg'"
1740
      ;;
1741
    esac
1742
  done
1743
done
1744
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747
# When interrupted or exit'd, cleanup temporary files, and complete
1748
# config.log.  We remove comments because anyway the quotes in there
1749
# would cause problems or look ugly.
1750
# WARNING: Use '\'' to represent an apostrophe within the trap.
1751
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752
trap 'exit_status=$?
1753
  # Save into config.log some information that might help in debugging.
1754
  {
1755
    echo
1756
1757
    cat <<\_ASBOX
1758
## ---------------- ##
1759
## Cache variables. ##
1760
## ---------------- ##
1761
_ASBOX
1762
    echo
1763
    # The following way of writing the cache mishandles newlines in values,
1764
(
1765
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766
    eval ac_val=\$$ac_var
1767
    case $ac_val in #(
1768
    *${as_nl}*)
1769
      case $ac_var in #(
1770
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772
      esac
1773
      case $ac_var in #(
1774
      _ | IFS | as_nl) ;; #(
1775
      *) $as_unset $ac_var ;;
1776
      esac ;;
1777
    esac
1778
  done
1779
  (set) 2>&1 |
1780
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781
    *${as_nl}ac_space=\ *)
1782
      sed -n \
1783
	"s/'\''/'\''\\\\'\'''\''/g;
1784
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785
      ;; #(
1786
    *)
1787
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788
      ;;
1789
    esac |
1790
    sort
1791
)
1792
    echo
1793
1794
    cat <<\_ASBOX
1795
## ----------------- ##
1796
## Output variables. ##
1797
## ----------------- ##
1798
_ASBOX
1799
    echo
1800
    for ac_var in $ac_subst_vars
1801
    do
1802
      eval ac_val=\$$ac_var
1803
      case $ac_val in
1804
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805
      esac
1806
      echo "$ac_var='\''$ac_val'\''"
1807
    done | sort
1808
    echo
1809
1810
    if test -n "$ac_subst_files"; then
1811
      cat <<\_ASBOX
1812
## ------------------- ##
1813
## File substitutions. ##
1814
## ------------------- ##
1815
_ASBOX
1816
      echo
1817
      for ac_var in $ac_subst_files
1818
      do
1819
	eval ac_val=\$$ac_var
1820
	case $ac_val in
1821
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822
	esac
1823
	echo "$ac_var='\''$ac_val'\''"
1824
      done | sort
1825
      echo
1826
    fi
1827
1828
    if test -s confdefs.h; then
1829
      cat <<\_ASBOX
1830
## ----------- ##
1831
## confdefs.h. ##
1832
## ----------- ##
1833
_ASBOX
1834
      echo
1835
      cat confdefs.h
1836
      echo
1837
    fi
1838
    test "$ac_signal" != 0 &&
1839
      echo "$as_me: caught signal $ac_signal"
1840
    echo "$as_me: exit $exit_status"
1841
  } >&5
1842
  rm -f core *.core core.conftest.* &&
1843
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844
    exit $exit_status
1845
' 0
1846
for ac_signal in 1 2 13 15; do
1847
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848
done
1849
ac_signal=0
1850
1851
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1852
rm -f -r conftest* confdefs.h
1853
1854
# Predefined preprocessor variables.
1855
1856
cat >>confdefs.h <<_ACEOF
1857
#define PACKAGE_NAME "$PACKAGE_NAME"
1858
_ACEOF
1859
1860
1861
cat >>confdefs.h <<_ACEOF
1862
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863
_ACEOF
1864
1865
1866
cat >>confdefs.h <<_ACEOF
1867
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1868
_ACEOF
1869
1870
1871
cat >>confdefs.h <<_ACEOF
1872
#define PACKAGE_STRING "$PACKAGE_STRING"
1873
_ACEOF
1874
1875
1876
cat >>confdefs.h <<_ACEOF
1877
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878
_ACEOF
1879
1880
1881
# Let the site file select an alternate cache file if it wants to.
1882
# Prefer explicitly selected file to automatically selected ones.
1883
if test -n "$CONFIG_SITE"; then
1884
  set x "$CONFIG_SITE"
1885
elif test "x$prefix" != xNONE; then
1886
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887
else
1888
  set x "$ac_default_prefix/share/config.site" \
1889
	"$ac_default_prefix/etc/config.site"
1890
fi
1891
shift
1892
for ac_site_file
1893
do
1894
  if test -r "$ac_site_file"; then
1895
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896
echo "$as_me: loading site script $ac_site_file" >&6;}
1897
    sed 's/^/| /' "$ac_site_file" >&5
1898
    . "$ac_site_file"
1899
  fi
1900
done
1901
1902
if test -r "$cache_file"; then
1903
  # Some versions of bash will fail to source /dev/null (special
1904
  # files actually), so we avoid doing that.
1905
  if test -f "$cache_file"; then
1906
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907
echo "$as_me: loading cache $cache_file" >&6;}
1908
    case $cache_file in
1909
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910
      *)                      . "./$cache_file";;
1911
    esac
1912
  fi
1913
else
1914
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915
echo "$as_me: creating cache $cache_file" >&6;}
1916
  >$cache_file
1917
fi
1918
1919
# Check that the precious variables saved in the cache have kept the same
1920
# value.
1921
ac_cache_corrupted=false
1922
for ac_var in $ac_precious_vars; do
1923
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924
  eval ac_new_set=\$ac_env_${ac_var}_set
1925
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926
  eval ac_new_val=\$ac_env_${ac_var}_value
1927
  case $ac_old_set,$ac_new_set in
1928
    set,)
1929
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931
      ac_cache_corrupted=: ;;
1932
    ,set)
1933
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935
      ac_cache_corrupted=: ;;
1936
    ,);;
1937
    *)
1938
      if test "x$ac_old_val" != "x$ac_new_val"; then
1939
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1942
echo "$as_me:   former value:  $ac_old_val" >&2;}
1943
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1944
echo "$as_me:   current value: $ac_new_val" >&2;}
1945
	ac_cache_corrupted=:
1946
      fi;;
1947
  esac
1948
  # Pass precious variables to config.status.
1949
  if test "$ac_new_set" = set; then
1950
    case $ac_new_val in
1951
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952
    *) ac_arg=$ac_var=$ac_new_val ;;
1953
    esac
1954
    case " $ac_configure_args " in
1955
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1956
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957
    esac
1958
  fi
1959
done
1960
if $ac_cache_corrupted; then
1961
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965
   { (exit 1); exit 1; }; }
1966
fi
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
ac_ext=c
1993
ac_cpp='$CPP $CPPFLAGS'
1994
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998
1999
2000
ac_config_headers="$ac_config_headers config.h"
2001
2002
2003
am__api_version='1.10'
2004
2005
ac_aux_dir=
2006
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2007
  if test -f "$ac_dir/install-sh"; then
2008
    ac_aux_dir=$ac_dir
2009
    ac_install_sh="$ac_aux_dir/install-sh -c"
2010
    break
2011
  elif test -f "$ac_dir/install.sh"; then
2012
    ac_aux_dir=$ac_dir
2013
    ac_install_sh="$ac_aux_dir/install.sh -c"
2014
    break
2015
  elif test -f "$ac_dir/shtool"; then
2016
    ac_aux_dir=$ac_dir
2017
    ac_install_sh="$ac_aux_dir/shtool install -c"
2018
    break
2019
  fi
2020
done
2021
if test -z "$ac_aux_dir"; then
2022
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2023
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2024
   { (exit 1); exit 1; }; }
2025
fi
2026
2027
# These three variables are undocumented and unsupported,
2028
# and are intended to be withdrawn in a future Autoconf release.
2029
# They can cause serious problems if a builder's source tree is in a directory
2030
# whose full name contains unusual characters.
2031
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2032
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2033
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2034
2035
2036
# Find a good install program.  We prefer a C program (faster),
2037
# so one script is as good as another.  But avoid the broken or
2038
# incompatible versions:
2039
# SysV /etc/install, /usr/sbin/install
2040
# SunOS /usr/etc/install
2041
# IRIX /sbin/install
2042
# AIX /bin/install
2043
# AmigaOS /C/install, which installs bootblocks on floppy discs
2044
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2045
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2046
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2047
# OS/2's system install, which has a completely different semantic
2048
# ./install, which can be erroneously created by make from ./install.sh.
2049
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2050
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2051
if test -z "$INSTALL"; then
2052
if test "${ac_cv_path_install+set}" = set; then
2053
  echo $ECHO_N "(cached) $ECHO_C" >&6
2054
else
2055
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056
for as_dir in $PATH
2057
do
2058
  IFS=$as_save_IFS
2059
  test -z "$as_dir" && as_dir=.
2060
  # Account for people who put trailing slashes in PATH elements.
2061
case $as_dir/ in
2062
  ./ | .// | /cC/* | \
2063
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2064
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2065
  /usr/ucb/* ) ;;
2066
  *)
2067
    # OSF1 and SCO ODT 3.0 have their own names for install.
2068
    # Don't use installbsd from OSF since it installs stuff as root
2069
    # by default.
2070
    for ac_prog in ginstall scoinst install; do
2071
      for ac_exec_ext in '' $ac_executable_extensions; do
2072
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2073
	  if test $ac_prog = install &&
2074
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2075
	    # AIX install.  It has an incompatible calling convention.
2076
	    :
2077
	  elif test $ac_prog = install &&
2078
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079
	    # program-specific install script used by HP pwplus--don't use.
2080
	    :
2081
	  else
2082
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2083
	    break 3
2084
	  fi
2085
	fi
2086
      done
2087
    done
2088
    ;;
2089
esac
2090
done
2091
IFS=$as_save_IFS
2092
2093
2094
fi
2095
  if test "${ac_cv_path_install+set}" = set; then
2096
    INSTALL=$ac_cv_path_install
2097
  else
2098
    # As a last resort, use the slow shell script.  Don't cache a
2099
    # value for INSTALL within a source directory, because that will
2100
    # break other packages using the cache if that directory is
2101
    # removed, or if the value is a relative name.
2102
    INSTALL=$ac_install_sh
2103
  fi
2104
fi
2105
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2106
echo "${ECHO_T}$INSTALL" >&6; }
2107
2108
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2109
# It thinks the first close brace ends the variable substitution.
2110
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2111
2112
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2113
2114
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2115
2116
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2117
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2118
# Just in case
2119
sleep 1
2120
echo timestamp > conftest.file
2121
# Do `set' in a subshell so we don't clobber the current shell's
2122
# arguments.  Must try -L first in case configure is actually a
2123
# symlink; some systems play weird games with the mod time of symlinks
2124
# (eg FreeBSD returns the mod time of the symlink's containing
2125
# directory).
2126
if (
2127
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2128
   if test "$*" = "X"; then
2129
      # -L didn't work.
2130
      set X `ls -t $srcdir/configure conftest.file`
2131
   fi
2132
   rm -f conftest.file
2133
   if test "$*" != "X $srcdir/configure conftest.file" \
2134
      && test "$*" != "X conftest.file $srcdir/configure"; then
2135
2136
      # If neither matched, then we have a broken ls.  This can happen
2137
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2138
      # broken ls alias from the environment.  This has actually
2139
      # happened.  Such a system could not be considered "sane".
2140
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2141
alias in your environment" >&5
2142
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2143
alias in your environment" >&2;}
2144
   { (exit 1); exit 1; }; }
2145
   fi
2146
2147
   test "$2" = conftest.file
2148
   )
2149
then
2150
   # Ok.
2151
   :
2152
else
2153
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2154
Check your system clock" >&5
2155
echo "$as_me: error: newly created file is older than distributed files!
2156
Check your system clock" >&2;}
2157
   { (exit 1); exit 1; }; }
2158
fi
2159
{ echo "$as_me:$LINENO: result: yes" >&5
2160
echo "${ECHO_T}yes" >&6; }
2161
test "$program_prefix" != NONE &&
2162
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2163
# Use a double $ so make ignores it.
2164
test "$program_suffix" != NONE &&
2165
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2166
# Double any \ or $.  echo might interpret backslashes.
2167
# By default was `s,x,x', remove it if useless.
2168
cat <<\_ACEOF >conftest.sed
2169
s/[\\$]/&&/g;s/;s,x,x,$//
2170
_ACEOF
2171
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2172
rm -f conftest.sed
2173
2174
# expand $ac_aux_dir to an absolute path
2175
am_aux_dir=`cd $ac_aux_dir && pwd`
2176
2177
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2178
# Use eval to expand $SHELL
2179
if eval "$MISSING --run true"; then
2180
  am_missing_run="$MISSING --run "
2181
else
2182
  am_missing_run=
2183
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2184
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2185
fi
2186
2187
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2188
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2189
if test -z "$MKDIR_P"; then
2190
  if test "${ac_cv_path_mkdir+set}" = set; then
2191
  echo $ECHO_N "(cached) $ECHO_C" >&6
2192
else
2193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2195
do
2196
  IFS=$as_save_IFS
2197
  test -z "$as_dir" && as_dir=.
2198
  for ac_prog in mkdir gmkdir; do
2199
	 for ac_exec_ext in '' $ac_executable_extensions; do
2200
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2201
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2202
	     'mkdir (GNU coreutils) '* | \
2203
	     'mkdir (coreutils) '* | \
2204
	     'mkdir (fileutils) '4.1*)
2205
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2206
	       break 3;;
2207
	   esac
2208
	 done
2209
       done
2210
done
2211
IFS=$as_save_IFS
2212
2213
fi
2214
2215
  if test "${ac_cv_path_mkdir+set}" = set; then
2216
    MKDIR_P="$ac_cv_path_mkdir -p"
2217
  else
2218
    # As a last resort, use the slow shell script.  Don't cache a
2219
    # value for MKDIR_P within a source directory, because that will
2220
    # break other packages using the cache if that directory is
2221
    # removed, or if the value is a relative name.
2222
    test -d ./--version && rmdir ./--version
2223
    MKDIR_P="$ac_install_sh -d"
2224
  fi
2225
fi
2226
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2227
echo "${ECHO_T}$MKDIR_P" >&6; }
2228
2229
mkdir_p="$MKDIR_P"
2230
case $mkdir_p in
2231
  [\\/$]* | ?:[\\/]*) ;;
2232
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2233
esac
2234
2235
for ac_prog in gawk mawk nawk awk
2236
do
2237
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2238
set dummy $ac_prog; ac_word=$2
2239
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2240
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241
if test "${ac_cv_prog_AWK+set}" = set; then
2242
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
else
2244
  if test -n "$AWK"; then
2245
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2246
else
2247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248
for as_dir in $PATH
2249
do
2250
  IFS=$as_save_IFS
2251
  test -z "$as_dir" && as_dir=.
2252
  for ac_exec_ext in '' $ac_executable_extensions; do
2253
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254
    ac_cv_prog_AWK="$ac_prog"
2255
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256
    break 2
2257
  fi
2258
done
2259
done
2260
IFS=$as_save_IFS
2261
2262
fi
2263
fi
2264
AWK=$ac_cv_prog_AWK
2265
if test -n "$AWK"; then
2266
  { echo "$as_me:$LINENO: result: $AWK" >&5
2267
echo "${ECHO_T}$AWK" >&6; }
2268
else
2269
  { echo "$as_me:$LINENO: result: no" >&5
2270
echo "${ECHO_T}no" >&6; }
2271
fi
2272
2273
2274
  test -n "$AWK" && break
2275
done
2276
2277
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2278
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2279
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2280
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2281
  echo $ECHO_N "(cached) $ECHO_C" >&6
2282
else
2283
  cat >conftest.make <<\_ACEOF
2284
SHELL = /bin/sh
2285
all:
2286
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2287
_ACEOF
2288
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2289
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2290
  *@@@%%%=?*=@@@%%%*)
2291
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2292
  *)
2293
    eval ac_cv_prog_make_${ac_make}_set=no;;
2294
esac
2295
rm -f conftest.make
2296
fi
2297
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2298
  { echo "$as_me:$LINENO: result: yes" >&5
2299
echo "${ECHO_T}yes" >&6; }
2300
  SET_MAKE=
2301
else
2302
  { echo "$as_me:$LINENO: result: no" >&5
2303
echo "${ECHO_T}no" >&6; }
2304
  SET_MAKE="MAKE=${MAKE-make}"
2305
fi
2306
2307
rm -rf .tst 2>/dev/null
2308
mkdir .tst 2>/dev/null
2309
if test -d .tst; then
2310
  am__leading_dot=.
2311
else
2312
  am__leading_dot=_
2313
fi
2314
rmdir .tst 2>/dev/null
2315
2316
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2317
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2318
  # is not polluted with repeated "-I."
2319
  am__isrc=' -I$(srcdir)'
2320
  # test to see if srcdir already configured
2321
  if test -f $srcdir/config.status; then
2322
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2323
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2324
   { (exit 1); exit 1; }; }
2325
  fi
2326
fi
2327
2328
# test whether we have cygpath
2329
if test -z "$CYGPATH_W"; then
2330
  if (cygpath --version) >/dev/null 2>/dev/null; then
2331
    CYGPATH_W='cygpath -w'
2332
  else
2333
    CYGPATH_W=echo
2334
  fi
2335
fi
2336
2337
2338
# Define the identity of the package.
2339
 PACKAGE='cairo-dock'
2340
 VERSION='1.5.6-alpha0'
2341
2342
2343
cat >>confdefs.h <<_ACEOF
2344
#define PACKAGE "$PACKAGE"
2345
_ACEOF
2346
2347
2348
cat >>confdefs.h <<_ACEOF
2349
#define VERSION "$VERSION"
2350
_ACEOF
2351
2352
# Some tools Automake needs.
2353
2354
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2355
2356
2357
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2358
2359
2360
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2361
2362
2363
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2364
2365
2366
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2367
2368
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2369
2370
# Installed binaries are usually stripped using `strip' when the user
2371
# run `make install-strip'.  However `strip' might not be the right
2372
# tool to use in cross-compilation environments, therefore Automake
2373
# will honor the `STRIP' environment variable to overrule this program.
2374
if test "$cross_compiling" != no; then
2375
  if test -n "$ac_tool_prefix"; then
2376
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377
set dummy ${ac_tool_prefix}strip; ac_word=$2
2378
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380
if test "${ac_cv_prog_STRIP+set}" = set; then
2381
  echo $ECHO_N "(cached) $ECHO_C" >&6
2382
else
2383
  if test -n "$STRIP"; then
2384
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385
else
2386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387
for as_dir in $PATH
2388
do
2389
  IFS=$as_save_IFS
2390
  test -z "$as_dir" && as_dir=.
2391
  for ac_exec_ext in '' $ac_executable_extensions; do
2392
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395
    break 2
2396
  fi
2397
done
2398
done
2399
IFS=$as_save_IFS
2400
2401
fi
2402
fi
2403
STRIP=$ac_cv_prog_STRIP
2404
if test -n "$STRIP"; then
2405
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2406
echo "${ECHO_T}$STRIP" >&6; }
2407
else
2408
  { echo "$as_me:$LINENO: result: no" >&5
2409
echo "${ECHO_T}no" >&6; }
2410
fi
2411
2412
2413
fi
2414
if test -z "$ac_cv_prog_STRIP"; then
2415
  ac_ct_STRIP=$STRIP
2416
  # Extract the first word of "strip", so it can be a program name with args.
2417
set dummy strip; ac_word=$2
2418
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2421
  echo $ECHO_N "(cached) $ECHO_C" >&6
2422
else
2423
  if test -n "$ac_ct_STRIP"; then
2424
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425
else
2426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427
for as_dir in $PATH
2428
do
2429
  IFS=$as_save_IFS
2430
  test -z "$as_dir" && as_dir=.
2431
  for ac_exec_ext in '' $ac_executable_extensions; do
2432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433
    ac_cv_prog_ac_ct_STRIP="strip"
2434
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435
    break 2
2436
  fi
2437
done
2438
done
2439
IFS=$as_save_IFS
2440
2441
fi
2442
fi
2443
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444
if test -n "$ac_ct_STRIP"; then
2445
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2446
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2447
else
2448
  { echo "$as_me:$LINENO: result: no" >&5
2449
echo "${ECHO_T}no" >&6; }
2450
fi
2451
2452
  if test "x$ac_ct_STRIP" = x; then
2453
    STRIP=":"
2454
  else
2455
    case $cross_compiling:$ac_tool_warned in
2456
yes:)
2457
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458
whose name does not start with the host triplet.  If you think this
2459
configuration is useful to you, please write to autoconf@gnu.org." >&5
2460
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461
whose name does not start with the host triplet.  If you think this
2462
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463
ac_tool_warned=yes ;;
2464
esac
2465
    STRIP=$ac_ct_STRIP
2466
  fi
2467
else
2468
  STRIP="$ac_cv_prog_STRIP"
2469
fi
2470
2471
fi
2472
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2473
2474
# We need awk for the "check" target.  The system "awk" is bad on
2475
# some platforms.
2476
# Always define AMTAR for backward compatibility.
2477
2478
AMTAR=${AMTAR-"${am_missing_run}tar"}
2479
2480
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2481
2482
2483
2484
2485
2486
# Check whether --enable-shared was given.
2487
if test "${enable_shared+set}" = set; then
2488
  enableval=$enable_shared; p=${PACKAGE-default}
2489
    case $enableval in
2490
    yes) enable_shared=yes ;;
2491
    no) enable_shared=no ;;
2492
    *)
2493
      enable_shared=no
2494
      # Look at the argument we got.  We use all the common list separators.
2495
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2496
      for pkg in $enableval; do
2497
	IFS="$lt_save_ifs"
2498
	if test "X$pkg" = "X$p"; then
2499
	  enable_shared=yes
2500
	fi
2501
      done
2502
      IFS="$lt_save_ifs"
2503
      ;;
2504
    esac
2505
else
2506
  enable_shared=yes
2507
fi
2508
2509
2510
# Check whether --enable-static was given.
2511
if test "${enable_static+set}" = set; then
2512
  enableval=$enable_static; p=${PACKAGE-default}
2513
    case $enableval in
2514
    yes) enable_static=yes ;;
2515
    no) enable_static=no ;;
2516
    *)
2517
     enable_static=no
2518
      # Look at the argument we got.  We use all the common list separators.
2519
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2520
      for pkg in $enableval; do
2521
	IFS="$lt_save_ifs"
2522
	if test "X$pkg" = "X$p"; then
2523
	  enable_static=yes
2524
	fi
2525
      done
2526
      IFS="$lt_save_ifs"
2527
      ;;
2528
    esac
2529
else
2530
  enable_static=yes
2531
fi
2532
2533
2534
# Check whether --enable-fast-install was given.
2535
if test "${enable_fast_install+set}" = set; then
2536
  enableval=$enable_fast_install; p=${PACKAGE-default}
2537
    case $enableval in
2538
    yes) enable_fast_install=yes ;;
2539
    no) enable_fast_install=no ;;
2540
    *)
2541
      enable_fast_install=no
2542
      # Look at the argument we got.  We use all the common list separators.
2543
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2544
      for pkg in $enableval; do
2545
	IFS="$lt_save_ifs"
2546
	if test "X$pkg" = "X$p"; then
2547
	  enable_fast_install=yes
2548
	fi
2549
      done
2550
      IFS="$lt_save_ifs"
2551
      ;;
2552
    esac
2553
else
2554
  enable_fast_install=yes
2555
fi
2556
2557
2558
# Make sure we can run config.sub.
2559
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2561
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2562
   { (exit 1); exit 1; }; }
2563
2564
{ echo "$as_me:$LINENO: checking build system type" >&5
2565
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2566
if test "${ac_cv_build+set}" = set; then
2567
  echo $ECHO_N "(cached) $ECHO_C" >&6
2568
else
2569
  ac_build_alias=$build_alias
2570
test "x$ac_build_alias" = x &&
2571
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2572
test "x$ac_build_alias" = x &&
2573
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2574
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2575
   { (exit 1); exit 1; }; }
2576
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2578
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2579
   { (exit 1); exit 1; }; }
2580
2581
fi
2582
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2583
echo "${ECHO_T}$ac_cv_build" >&6; }
2584
case $ac_cv_build in
2585
*-*-*) ;;
2586
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2587
echo "$as_me: error: invalid value of canonical build" >&2;}
2588
   { (exit 1); exit 1; }; };;
2589
esac
2590
build=$ac_cv_build
2591
ac_save_IFS=$IFS; IFS='-'
2592
set x $ac_cv_build
2593
shift
2594
build_cpu=$1
2595
build_vendor=$2
2596
shift; shift
2597
# Remember, the first character of IFS is used to create $*,
2598
# except with old shells:
2599
build_os=$*
2600
IFS=$ac_save_IFS
2601
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2602
2603
2604
{ echo "$as_me:$LINENO: checking host system type" >&5
2605
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2606
if test "${ac_cv_host+set}" = set; then
2607
  echo $ECHO_N "(cached) $ECHO_C" >&6
2608
else
2609
  if test "x$host_alias" = x; then
2610
  ac_cv_host=$ac_cv_build
2611
else
2612
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2613
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2614
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2615
   { (exit 1); exit 1; }; }
2616
fi
2617
2618
fi
2619
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2620
echo "${ECHO_T}$ac_cv_host" >&6; }
2621
case $ac_cv_host in
2622
*-*-*) ;;
2623
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2624
echo "$as_me: error: invalid value of canonical host" >&2;}
2625
   { (exit 1); exit 1; }; };;
2626
esac
2627
host=$ac_cv_host
2628
ac_save_IFS=$IFS; IFS='-'
2629
set x $ac_cv_host
2630
shift
2631
host_cpu=$1
2632
host_vendor=$2
2633
shift; shift
2634
# Remember, the first character of IFS is used to create $*,
2635
# except with old shells:
2636
host_os=$*
2637
IFS=$ac_save_IFS
2638
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2639
2640
2641
DEPDIR="${am__leading_dot}deps"
2642
2643
ac_config_commands="$ac_config_commands depfiles"
2644
2645
2646
am_make=${MAKE-make}
2647
cat > confinc << 'END'
2648
am__doit:
2649
	@echo done
2650
.PHONY: am__doit
2651
END
2652
# If we don't find an include directive, just comment out the code.
2653
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2654
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2655
am__include="#"
2656
am__quote=
2657
_am_result=none
2658
# First try GNU make style include.
2659
echo "include confinc" > confmf
2660
# We grep out `Entering directory' and `Leaving directory'
2661
# messages which can occur if `w' ends up in MAKEFLAGS.
2662
# In particular we don't look at `^make:' because GNU make might
2663
# be invoked under some other name (usually "gmake"), in which
2664
# case it prints its new name instead of `make'.
2665
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2666
   am__include=include
2667
   am__quote=
2668
   _am_result=GNU
2669
fi
2670
# Now try BSD make style include.
2671
if test "$am__include" = "#"; then
2672
   echo '.include "confinc"' > confmf
2673
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2674
      am__include=.include
2675
      am__quote="\""
2676
      _am_result=BSD
2677
   fi
2678
fi
2679
2680
2681
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2682
echo "${ECHO_T}$_am_result" >&6; }
2683
rm -f confinc confmf
2684
2685
# Check whether --enable-dependency-tracking was given.
2686
if test "${enable_dependency_tracking+set}" = set; then
2687
  enableval=$enable_dependency_tracking;
2688
fi
2689
2690
if test "x$enable_dependency_tracking" != xno; then
2691
  am_depcomp="$ac_aux_dir/depcomp"
2692
  AMDEPBACKSLASH='\'
2693
fi
2694
 if test "x$enable_dependency_tracking" != xno; then
2695
  AMDEP_TRUE=
2696
  AMDEP_FALSE='#'
2697
else
2698
  AMDEP_TRUE='#'
2699
  AMDEP_FALSE=
2700
fi
2701
2702
2703
ac_ext=c
2704
ac_cpp='$CPP $CPPFLAGS'
2705
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708
if test -n "$ac_tool_prefix"; then
2709
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2712
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713
if test "${ac_cv_prog_CC+set}" = set; then
2714
  echo $ECHO_N "(cached) $ECHO_C" >&6
2715
else
2716
  if test -n "$CC"; then
2717
  ac_cv_prog_CC="$CC" # Let the user override the test.
2718
else
2719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720
for as_dir in $PATH
2721
do
2722
  IFS=$as_save_IFS
2723
  test -z "$as_dir" && as_dir=.
2724
  for ac_exec_ext in '' $ac_executable_extensions; do
2725
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728
    break 2
2729
  fi
2730
done
2731
done
2732
IFS=$as_save_IFS
2733
2734
fi
2735
fi
2736
CC=$ac_cv_prog_CC
2737
if test -n "$CC"; then
2738
  { echo "$as_me:$LINENO: result: $CC" >&5
2739
echo "${ECHO_T}$CC" >&6; }
2740
else
2741
  { echo "$as_me:$LINENO: result: no" >&5
2742
echo "${ECHO_T}no" >&6; }
2743
fi
2744
2745
2746
fi
2747
if test -z "$ac_cv_prog_CC"; then
2748
  ac_ct_CC=$CC
2749
  # Extract the first word of "gcc", so it can be a program name with args.
2750
set dummy gcc; ac_word=$2
2751
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754
  echo $ECHO_N "(cached) $ECHO_C" >&6
2755
else
2756
  if test -n "$ac_ct_CC"; then
2757
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758
else
2759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760
for as_dir in $PATH
2761
do
2762
  IFS=$as_save_IFS
2763
  test -z "$as_dir" && as_dir=.
2764
  for ac_exec_ext in '' $ac_executable_extensions; do
2765
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766
    ac_cv_prog_ac_ct_CC="gcc"
2767
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768
    break 2
2769
  fi
2770
done
2771
done
2772
IFS=$as_save_IFS
2773
2774
fi
2775
fi
2776
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777
if test -n "$ac_ct_CC"; then
2778
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779
echo "${ECHO_T}$ac_ct_CC" >&6; }
2780
else
2781
  { echo "$as_me:$LINENO: result: no" >&5
2782
echo "${ECHO_T}no" >&6; }
2783
fi
2784
2785
  if test "x$ac_ct_CC" = x; then
2786
    CC=""
2787
  else
2788
    case $cross_compiling:$ac_tool_warned in
2789
yes:)
2790
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791
whose name does not start with the host triplet.  If you think this
2792
configuration is useful to you, please write to autoconf@gnu.org." >&5
2793
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794
whose name does not start with the host triplet.  If you think this
2795
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796
ac_tool_warned=yes ;;
2797
esac
2798
    CC=$ac_ct_CC
2799
  fi
2800
else
2801
  CC="$ac_cv_prog_CC"
2802
fi
2803
2804
if test -z "$CC"; then
2805
          if test -n "$ac_tool_prefix"; then
2806
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807
set dummy ${ac_tool_prefix}cc; ac_word=$2
2808
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2809
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810
if test "${ac_cv_prog_CC+set}" = set; then
2811
  echo $ECHO_N "(cached) $ECHO_C" >&6
2812
else
2813
  if test -n "$CC"; then
2814
  ac_cv_prog_CC="$CC" # Let the user override the test.
2815
else
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817
for as_dir in $PATH
2818
do
2819
  IFS=$as_save_IFS
2820
  test -z "$as_dir" && as_dir=.
2821
  for ac_exec_ext in '' $ac_executable_extensions; do
2822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2824
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825
    break 2
2826
  fi
2827
done
2828
done
2829
IFS=$as_save_IFS
2830
2831
fi
2832
fi
2833
CC=$ac_cv_prog_CC
2834
if test -n "$CC"; then
2835
  { echo "$as_me:$LINENO: result: $CC" >&5
2836
echo "${ECHO_T}$CC" >&6; }
2837
else
2838
  { echo "$as_me:$LINENO: result: no" >&5
2839
echo "${ECHO_T}no" >&6; }
2840
fi
2841
2842
2843
  fi
2844
fi
2845
if test -z "$CC"; then
2846
  # Extract the first word of "cc", so it can be a program name with args.
2847
set dummy cc; ac_word=$2
2848
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850
if test "${ac_cv_prog_CC+set}" = set; then
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
else
2853
  if test -n "$CC"; then
2854
  ac_cv_prog_CC="$CC" # Let the user override the test.
2855
else
2856
  ac_prog_rejected=no
2857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858
for as_dir in $PATH
2859
do
2860
  IFS=$as_save_IFS
2861
  test -z "$as_dir" && as_dir=.
2862
  for ac_exec_ext in '' $ac_executable_extensions; do
2863
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865
       ac_prog_rejected=yes
2866
       continue
2867
     fi
2868
    ac_cv_prog_CC="cc"
2869
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870
    break 2
2871
  fi
2872
done
2873
done
2874
IFS=$as_save_IFS
2875
2876
if test $ac_prog_rejected = yes; then
2877
  # We found a bogon in the path, so make sure we never use it.
2878
  set dummy $ac_cv_prog_CC
2879
  shift
2880
  if test $# != 0; then
2881
    # We chose a different compiler from the bogus one.
2882
    # However, it has the same basename, so the bogon will be chosen
2883
    # first if we set CC to just the basename; use the full file name.
2884
    shift
2885
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886
  fi
2887
fi
2888
fi
2889
fi
2890
CC=$ac_cv_prog_CC
2891
if test -n "$CC"; then
2892
  { echo "$as_me:$LINENO: result: $CC" >&5
2893
echo "${ECHO_T}$CC" >&6; }
2894
else
2895
  { echo "$as_me:$LINENO: result: no" >&5
2896
echo "${ECHO_T}no" >&6; }
2897
fi
2898
2899
2900
fi
2901
if test -z "$CC"; then
2902
  if test -n "$ac_tool_prefix"; then
2903
  for ac_prog in cl.exe
2904
  do
2905
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2908
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909
if test "${ac_cv_prog_CC+set}" = set; then
2910
  echo $ECHO_N "(cached) $ECHO_C" >&6
2911
else
2912
  if test -n "$CC"; then
2913
  ac_cv_prog_CC="$CC" # Let the user override the test.
2914
else
2915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916
for as_dir in $PATH
2917
do
2918
  IFS=$as_save_IFS
2919
  test -z "$as_dir" && as_dir=.
2920
  for ac_exec_ext in '' $ac_executable_extensions; do
2921
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924
    break 2
2925
  fi
2926
done
2927
done
2928
IFS=$as_save_IFS
2929
2930
fi
2931
fi
2932
CC=$ac_cv_prog_CC
2933
if test -n "$CC"; then
2934
  { echo "$as_me:$LINENO: result: $CC" >&5
2935
echo "${ECHO_T}$CC" >&6; }
2936
else
2937
  { echo "$as_me:$LINENO: result: no" >&5
2938
echo "${ECHO_T}no" >&6; }
2939
fi
2940
2941
2942
    test -n "$CC" && break
2943
  done
2944
fi
2945
if test -z "$CC"; then
2946
  ac_ct_CC=$CC
2947
  for ac_prog in cl.exe
2948
do
2949
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2950
set dummy $ac_prog; ac_word=$2
2951
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954
  echo $ECHO_N "(cached) $ECHO_C" >&6
2955
else
2956
  if test -n "$ac_ct_CC"; then
2957
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958
else
2959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960
for as_dir in $PATH
2961
do
2962
  IFS=$as_save_IFS
2963
  test -z "$as_dir" && as_dir=.
2964
  for ac_exec_ext in '' $ac_executable_extensions; do
2965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966
    ac_cv_prog_ac_ct_CC="$ac_prog"
2967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968
    break 2
2969
  fi
2970
done
2971
done
2972
IFS=$as_save_IFS
2973
2974
fi
2975
fi
2976
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977
if test -n "$ac_ct_CC"; then
2978
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979
echo "${ECHO_T}$ac_ct_CC" >&6; }
2980
else
2981
  { echo "$as_me:$LINENO: result: no" >&5
2982
echo "${ECHO_T}no" >&6; }
2983
fi
2984
2985
2986
  test -n "$ac_ct_CC" && break
2987
done
2988
2989
  if test "x$ac_ct_CC" = x; then
2990
    CC=""
2991
  else
2992
    case $cross_compiling:$ac_tool_warned in
2993
yes:)
2994
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995
whose name does not start with the host triplet.  If you think this
2996
configuration is useful to you, please write to autoconf@gnu.org." >&5
2997
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998
whose name does not start with the host triplet.  If you think this
2999
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000
ac_tool_warned=yes ;;
3001
esac
3002
    CC=$ac_ct_CC
3003
  fi
3004
fi
3005
3006
fi
3007
3008
3009
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010
See \`config.log' for more details." >&5
3011
echo "$as_me: error: no acceptable C compiler found in \$PATH
3012
See \`config.log' for more details." >&2;}
3013
   { (exit 1); exit 1; }; }
3014
3015
# Provide some information about the compiler.
3016
echo "$as_me:$LINENO: checking for C compiler version" >&5
3017
ac_compiler=`set X $ac_compile; echo $2`
3018
{ (ac_try="$ac_compiler --version >&5"
3019
case "(($ac_try" in
3020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021
  *) ac_try_echo=$ac_try;;
3022
esac
3023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024
  (eval "$ac_compiler --version >&5") 2>&5
3025
  ac_status=$?
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
  (exit $ac_status); }
3028
{ (ac_try="$ac_compiler -v >&5"
3029
case "(($ac_try" in
3030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031
  *) ac_try_echo=$ac_try;;
3032
esac
3033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034
  (eval "$ac_compiler -v >&5") 2>&5
3035
  ac_status=$?
3036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037
  (exit $ac_status); }
3038
{ (ac_try="$ac_compiler -V >&5"
3039
case "(($ac_try" in
3040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041
  *) ac_try_echo=$ac_try;;
3042
esac
3043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044
  (eval "$ac_compiler -V >&5") 2>&5
3045
  ac_status=$?
3046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047
  (exit $ac_status); }
3048
3049
cat >conftest.$ac_ext <<_ACEOF
3050
/* confdefs.h.  */
3051
_ACEOF
3052
cat confdefs.h >>conftest.$ac_ext
3053
cat >>conftest.$ac_ext <<_ACEOF
3054
/* end confdefs.h.  */
3055
3056
int
3057
main ()
3058
{
3059
3060
  ;
3061
  return 0;
3062
}
3063
_ACEOF
3064
ac_clean_files_save=$ac_clean_files
3065
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066
# Try to create an executable without -o first, disregard a.out.
3067
# It will help us diagnose broken compilers, and finding out an intuition
3068
# of exeext.
3069
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072
#
3073
# List of possible output files, starting from the most likely.
3074
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3075
# only as a last resort.  b.out is created by i960 compilers.
3076
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3077
#
3078
# The IRIX 6 linker writes into existing files which may not be
3079
# executable, retaining their permissions.  Remove them first so a
3080
# subsequent execution test works.
3081
ac_rmfiles=
3082
for ac_file in $ac_files
3083
do
3084
  case $ac_file in
3085
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087
  esac
3088
done
3089
rm -f $ac_rmfiles
3090
3091
if { (ac_try="$ac_link_default"
3092
case "(($ac_try" in
3093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094
  *) ac_try_echo=$ac_try;;
3095
esac
3096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097
  (eval "$ac_link_default") 2>&5
3098
  ac_status=$?
3099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100
  (exit $ac_status); }; then
3101
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3104
# so that the user can short-circuit this test for compilers unknown to
3105
# Autoconf.
3106
for ac_file in $ac_files ''
3107
do
3108
  test -f "$ac_file" || continue
3109
  case $ac_file in
3110
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3111
	;;
3112
    [ab].out )
3113
	# We found the default executable, but exeext='' is most
3114
	# certainly right.
3115
	break;;
3116
    *.* )
3117
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118
	then :; else
3119
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120
	fi
3121
	# We set ac_cv_exeext here because the later test for it is not
3122
	# safe: cross compilers may not add the suffix if given an `-o'
3123
	# argument, so we may need to know it at that point already.
3124
	# Even if this section looks crufty: it has the advantage of
3125
	# actually working.
3126
	break;;
3127
    * )
3128
	break;;
3129
  esac
3130
done
3131
test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
3133
else
3134
  ac_file=''
3135
fi
3136
3137
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3138
echo "${ECHO_T}$ac_file" >&6; }
3139
if test -z "$ac_file"; then
3140
  echo "$as_me: failed program was:" >&5
3141
sed 's/^/| /' conftest.$ac_ext >&5
3142
3143
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144
See \`config.log' for more details." >&5
3145
echo "$as_me: error: C compiler cannot create executables
3146
See \`config.log' for more details." >&2;}
3147
   { (exit 77); exit 77; }; }
3148
fi
3149
3150
ac_exeext=$ac_cv_exeext
3151
3152
# Check that the compiler produces executables we can run.  If not, either
3153
# the compiler is broken, or we cross compile.
3154
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157
# If not cross compiling, check that we can run a simple program.
3158
if test "$cross_compiling" != yes; then
3159
  if { ac_try='./$ac_file'
3160
  { (case "(($ac_try" in
3161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162
  *) ac_try_echo=$ac_try;;
3163
esac
3164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165
  (eval "$ac_try") 2>&5
3166
  ac_status=$?
3167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168
  (exit $ac_status); }; }; then
3169
    cross_compiling=no
3170
  else
3171
    if test "$cross_compiling" = maybe; then
3172
	cross_compiling=yes
3173
    else
3174
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175
If you meant to cross compile, use \`--host'.
3176
See \`config.log' for more details." >&5
3177
echo "$as_me: error: cannot run C compiled programs.
3178
If you meant to cross compile, use \`--host'.
3179
See \`config.log' for more details." >&2;}
3180
   { (exit 1); exit 1; }; }
3181
    fi
3182
  fi
3183
fi
3184
{ echo "$as_me:$LINENO: result: yes" >&5
3185
echo "${ECHO_T}yes" >&6; }
3186
3187
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188
ac_clean_files=$ac_clean_files_save
3189
# Check that the compiler produces executables we can run.  If not, either
3190
# the compiler is broken, or we cross compile.
3191
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194
echo "${ECHO_T}$cross_compiling" >&6; }
3195
3196
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198
if { (ac_try="$ac_link"
3199
case "(($ac_try" in
3200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
  *) ac_try_echo=$ac_try;;
3202
esac
3203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204
  (eval "$ac_link") 2>&5
3205
  ac_status=$?
3206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
  (exit $ac_status); }; then
3208
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3210
# work properly (i.e., refer to `conftest.exe'), while it won't with
3211
# `rm'.
3212
for ac_file in conftest.exe conftest conftest.*; do
3213
  test -f "$ac_file" || continue
3214
  case $ac_file in
3215
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3216
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217
	  break;;
3218
    * ) break;;
3219
  esac
3220
done
3221
else
3222
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223
See \`config.log' for more details." >&5
3224
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225
See \`config.log' for more details." >&2;}
3226
   { (exit 1); exit 1; }; }
3227
fi
3228
3229
rm -f conftest$ac_cv_exeext
3230
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3232
3233
rm -f conftest.$ac_ext
3234
EXEEXT=$ac_cv_exeext
3235
ac_exeext=$EXEEXT
3236
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238
if test "${ac_cv_objext+set}" = set; then
3239
  echo $ECHO_N "(cached) $ECHO_C" >&6
3240
else
3241
  cat >conftest.$ac_ext <<_ACEOF
3242
/* confdefs.h.  */
3243
_ACEOF
3244
cat confdefs.h >>conftest.$ac_ext
3245
cat >>conftest.$ac_ext <<_ACEOF
3246
/* end confdefs.h.  */
3247
3248
int
3249
main ()
3250
{
3251
3252
  ;
3253
  return 0;
3254
}
3255
_ACEOF
3256
rm -f conftest.o conftest.obj
3257
if { (ac_try="$ac_compile"
3258
case "(($ac_try" in
3259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260
  *) ac_try_echo=$ac_try;;
3261
esac
3262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263
  (eval "$ac_compile") 2>&5
3264
  ac_status=$?
3265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266
  (exit $ac_status); }; then
3267
  for ac_file in conftest.o conftest.obj conftest.*; do
3268
  test -f "$ac_file" || continue;
3269
  case $ac_file in
3270
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272
       break;;
3273
  esac
3274
done
3275
else
3276
  echo "$as_me: failed program was:" >&5
3277
sed 's/^/| /' conftest.$ac_ext >&5
3278
3279
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280
See \`config.log' for more details." >&5
3281
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282
See \`config.log' for more details." >&2;}
3283
   { (exit 1); exit 1; }; }
3284
fi
3285
3286
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287
fi
3288
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3289
echo "${ECHO_T}$ac_cv_objext" >&6; }
3290
OBJEXT=$ac_cv_objext
3291
ac_objext=$OBJEXT
3292
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3294
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295
  echo $ECHO_N "(cached) $ECHO_C" >&6
3296
else
3297
  cat >conftest.$ac_ext <<_ACEOF
3298
/* confdefs.h.  */
3299
_ACEOF
3300
cat confdefs.h >>conftest.$ac_ext
3301
cat >>conftest.$ac_ext <<_ACEOF
3302
/* end confdefs.h.  */
3303
3304
int
3305
main ()
3306
{
3307
#ifndef __GNUC__
3308
       choke me
3309
#endif
3310
3311
  ;
3312
  return 0;
3313
}
3314
_ACEOF
3315
rm -f conftest.$ac_objext
3316
if { (ac_try="$ac_compile"
3317
case "(($ac_try" in
3318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319
  *) ac_try_echo=$ac_try;;
3320
esac
3321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322
  (eval "$ac_compile") 2>conftest.er1
3323
  ac_status=$?
3324
  grep -v '^ *+' conftest.er1 >conftest.err
3325
  rm -f conftest.er1
3326
  cat conftest.err >&5
3327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328
  (exit $ac_status); } && {
3329
	 test -z "$ac_c_werror_flag" ||
3330
	 test ! -s conftest.err
3331
       } && test -s conftest.$ac_objext; then
3332
  ac_compiler_gnu=yes
3333
else
3334
  echo "$as_me: failed program was:" >&5
3335
sed 's/^/| /' conftest.$ac_ext >&5
3336
3337
	ac_compiler_gnu=no
3338
fi
3339
3340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342
3343
fi
3344
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3345
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346
GCC=`test $ac_compiler_gnu = yes && echo yes`
3347
ac_test_CFLAGS=${CFLAGS+set}
3348
ac_save_CFLAGS=$CFLAGS
3349
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3350
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3351
if test "${ac_cv_prog_cc_g+set}" = set; then
3352
  echo $ECHO_N "(cached) $ECHO_C" >&6
3353
else
3354
  ac_save_c_werror_flag=$ac_c_werror_flag
3355
   ac_c_werror_flag=yes
3356
   ac_cv_prog_cc_g=no
3357
   CFLAGS="-g"
3358
   cat >conftest.$ac_ext <<_ACEOF
3359
/* confdefs.h.  */
3360
_ACEOF
3361
cat confdefs.h >>conftest.$ac_ext
3362
cat >>conftest.$ac_ext <<_ACEOF
3363
/* end confdefs.h.  */
3364
3365
int
3366
main ()
3367
{
3368
3369
  ;
3370
  return 0;
3371
}
3372
_ACEOF
3373
rm -f conftest.$ac_objext
3374
if { (ac_try="$ac_compile"
3375
case "(($ac_try" in
3376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377
  *) ac_try_echo=$ac_try;;
3378
esac
3379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380
  (eval "$ac_compile") 2>conftest.er1
3381
  ac_status=$?
3382
  grep -v '^ *+' conftest.er1 >conftest.err
3383
  rm -f conftest.er1
3384
  cat conftest.err >&5
3385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386
  (exit $ac_status); } && {
3387
	 test -z "$ac_c_werror_flag" ||
3388
	 test ! -s conftest.err
3389
       } && test -s conftest.$ac_objext; then
3390
  ac_cv_prog_cc_g=yes
3391
else
3392
  echo "$as_me: failed program was:" >&5
3393
sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
	CFLAGS=""
3396
      cat >conftest.$ac_ext <<_ACEOF
3397
/* confdefs.h.  */
3398
_ACEOF
3399
cat confdefs.h >>conftest.$ac_ext
3400
cat >>conftest.$ac_ext <<_ACEOF
3401
/* end confdefs.h.  */
3402
3403
int
3404
main ()
3405
{
3406
3407
  ;
3408
  return 0;
3409
}
3410
_ACEOF
3411
rm -f conftest.$ac_objext
3412
if { (ac_try="$ac_compile"
3413
case "(($ac_try" in
3414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415
  *) ac_try_echo=$ac_try;;
3416
esac
3417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418
  (eval "$ac_compile") 2>conftest.er1
3419
  ac_status=$?
3420
  grep -v '^ *+' conftest.er1 >conftest.err
3421
  rm -f conftest.er1
3422
  cat conftest.err >&5
3423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
  (exit $ac_status); } && {
3425
	 test -z "$ac_c_werror_flag" ||
3426
	 test ! -s conftest.err
3427
       } && test -s conftest.$ac_objext; then
3428
  :
3429
else
3430
  echo "$as_me: failed program was:" >&5
3431
sed 's/^/| /' conftest.$ac_ext >&5
3432
3433
	ac_c_werror_flag=$ac_save_c_werror_flag
3434
	 CFLAGS="-g"
3435
	 cat >conftest.$ac_ext <<_ACEOF
3436
/* confdefs.h.  */
3437
_ACEOF
3438
cat confdefs.h >>conftest.$ac_ext
3439
cat >>conftest.$ac_ext <<_ACEOF
3440
/* end confdefs.h.  */
3441
3442
int
3443
main ()
3444
{
3445
3446
  ;
3447
  return 0;
3448
}
3449
_ACEOF
3450
rm -f conftest.$ac_objext
3451
if { (ac_try="$ac_compile"
3452
case "(($ac_try" in
3453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454
  *) ac_try_echo=$ac_try;;
3455
esac
3456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457
  (eval "$ac_compile") 2>conftest.er1
3458
  ac_status=$?
3459
  grep -v '^ *+' conftest.er1 >conftest.err
3460
  rm -f conftest.er1
3461
  cat conftest.err >&5
3462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463
  (exit $ac_status); } && {
3464
	 test -z "$ac_c_werror_flag" ||
3465
	 test ! -s conftest.err
3466
       } && test -s conftest.$ac_objext; then
3467
  ac_cv_prog_cc_g=yes
3468
else
3469
  echo "$as_me: failed program was:" >&5
3470
sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473
fi
3474
3475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476
fi
3477
3478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479
fi
3480
3481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482
   ac_c_werror_flag=$ac_save_c_werror_flag
3483
fi
3484
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3485
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486
if test "$ac_test_CFLAGS" = set; then
3487
  CFLAGS=$ac_save_CFLAGS
3488
elif test $ac_cv_prog_cc_g = yes; then
3489
  if test "$GCC" = yes; then
3490
    CFLAGS="-g -O2"
3491
  else
3492
    CFLAGS="-g"
3493
  fi
3494
else
3495
  if test "$GCC" = yes; then
3496
    CFLAGS="-O2"
3497
  else
3498
    CFLAGS=
3499
  fi
3500
fi
3501
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3502
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3503
if test "${ac_cv_prog_cc_c89+set}" = set; then
3504
  echo $ECHO_N "(cached) $ECHO_C" >&6
3505
else
3506
  ac_cv_prog_cc_c89=no
3507
ac_save_CC=$CC
3508
cat >conftest.$ac_ext <<_ACEOF
3509
/* confdefs.h.  */
3510
_ACEOF
3511
cat confdefs.h >>conftest.$ac_ext
3512
cat >>conftest.$ac_ext <<_ACEOF
3513
/* end confdefs.h.  */
3514
#include <stdarg.h>
3515
#include <stdio.h>
3516
#include <sys/types.h>
3517
#include <sys/stat.h>
3518
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3519
struct buf { int x; };
3520
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521
static char *e (p, i)
3522
     char **p;
3523
     int i;
3524
{
3525
  return p[i];
3526
}
3527
static char *f (char * (*g) (char **, int), char **p, ...)
3528
{
3529
  char *s;
3530
  va_list v;
3531
  va_start (v,p);
3532
  s = g (p, va_arg (v,int));
3533
  va_end (v);
3534
  return s;
3535
}
3536
3537
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3538
   function prototypes and stuff, but not '\xHH' hex character constants.
3539
   These don't provoke an error unfortunately, instead are silently treated
3540
   as 'x'.  The following induces an error, until -std is added to get
3541
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3542
   array size at least.  It's necessary to write '\x00'==0 to get something
3543
   that's true only with -std.  */
3544
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3545
3546
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547
   inside strings and character constants.  */
3548
#define FOO(x) 'x'
3549
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3550
3551
int test (int i, double x);
3552
struct s1 {int (*f) (int a);};
3553
struct s2 {int (*f) (double a);};
3554
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555
int argc;
3556
char **argv;
3557
int
3558
main ()
3559
{
3560
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3561
  ;
3562
  return 0;
3563
}
3564
_ACEOF
3565
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3567
do
3568
  CC="$ac_save_CC $ac_arg"
3569
  rm -f conftest.$ac_objext
3570
if { (ac_try="$ac_compile"
3571
case "(($ac_try" in
3572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573
  *) ac_try_echo=$ac_try;;
3574
esac
3575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576
  (eval "$ac_compile") 2>conftest.er1
3577
  ac_status=$?
3578
  grep -v '^ *+' conftest.er1 >conftest.err
3579
  rm -f conftest.er1
3580
  cat conftest.err >&5
3581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582
  (exit $ac_status); } && {
3583
	 test -z "$ac_c_werror_flag" ||
3584
	 test ! -s conftest.err
3585
       } && test -s conftest.$ac_objext; then
3586
  ac_cv_prog_cc_c89=$ac_arg
3587
else
3588
  echo "$as_me: failed program was:" >&5
3589
sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592
fi
3593
3594
rm -f core conftest.err conftest.$ac_objext
3595
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3596
done
3597
rm -f conftest.$ac_ext
3598
CC=$ac_save_CC
3599
3600
fi
3601
# AC_CACHE_VAL
3602
case "x$ac_cv_prog_cc_c89" in
3603
  x)
3604
    { echo "$as_me:$LINENO: result: none needed" >&5
3605
echo "${ECHO_T}none needed" >&6; } ;;
3606
  xno)
3607
    { echo "$as_me:$LINENO: result: unsupported" >&5
3608
echo "${ECHO_T}unsupported" >&6; } ;;
3609
  *)
3610
    CC="$CC $ac_cv_prog_cc_c89"
3611
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3613
esac
3614
3615
3616
ac_ext=c
3617
ac_cpp='$CPP $CPPFLAGS'
3618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
depcc="$CC"   am_compiler_list=
3623
3624
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3625
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3626
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3627
  echo $ECHO_N "(cached) $ECHO_C" >&6
3628
else
3629
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3630
  # We make a subdir and do the tests there.  Otherwise we can end up
3631
  # making bogus files that we don't know about and never remove.  For
3632
  # instance it was reported that on HP-UX the gcc test will end up
3633
  # making a dummy file named `D' -- because `-MD' means `put the output
3634
  # in D'.
3635
  mkdir conftest.dir
3636
  # Copy depcomp to subdir because otherwise we won't find it if we're
3637
  # using a relative directory.
3638
  cp "$am_depcomp" conftest.dir
3639
  cd conftest.dir
3640
  # We will build objects and dependencies in a subdirectory because
3641
  # it helps to detect inapplicable dependency modes.  For instance
3642
  # both Tru64's cc and ICC support -MD to output dependencies as a
3643
  # side effect of compilation, but ICC will put the dependencies in
3644
  # the current directory while Tru64 will put them in the object
3645
  # directory.
3646
  mkdir sub
3647
3648
  am_cv_CC_dependencies_compiler_type=none
3649
  if test "$am_compiler_list" = ""; then
3650
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3651
  fi
3652
  for depmode in $am_compiler_list; do
3653
    # Setup a source with many dependencies, because some compilers
3654
    # like to wrap large dependency lists on column 80 (with \), and
3655
    # we should not choose a depcomp mode which is confused by this.
3656
    #
3657
    # We need to recreate these files for each test, as the compiler may
3658
    # overwrite some of them when testing with obscure command lines.
3659
    # This happens at least with the AIX C compiler.
3660
    : > sub/conftest.c
3661
    for i in 1 2 3 4 5 6; do
3662
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3663
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3664
      # Solaris 8's {/usr,}/bin/sh.
3665
      touch sub/conftst$i.h
3666
    done
3667
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3668
3669
    case $depmode in
3670
    nosideeffect)
3671
      # after this tag, mechanisms are not by side-effect, so they'll
3672
      # only be used when explicitly requested
3673
      if test "x$enable_dependency_tracking" = xyes; then
3674
	continue
3675
      else
3676
	break
3677
      fi
3678
      ;;
3679
    none) break ;;
3680
    esac
3681
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3682
    # mode.  It turns out that the SunPro C++ compiler does not properly
3683
    # handle `-M -o', and we need to detect this.
3684
    if depmode=$depmode \
3685
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3686
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3687
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3688
         >/dev/null 2>conftest.err &&
3689
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3690
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3691
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3692
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3693
      # icc doesn't choke on unknown options, it will just issue warnings
3694
      # or remarks (even with -Werror).  So we grep stderr for any message
3695
      # that says an option was ignored or not supported.
3696
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3697
      #   icc: Command line warning: ignoring option '-M'; no argument required
3698
      # The diagnosis changed in icc 8.0:
3699
      #   icc: Command line remark: option '-MP' not supported
3700
      if (grep 'ignoring option' conftest.err ||
3701
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3702
        am_cv_CC_dependencies_compiler_type=$depmode
3703
        break
3704
      fi
3705
    fi
3706
  done
3707
3708
  cd ..
3709
  rm -rf conftest.dir
3710
else
3711
  am_cv_CC_dependencies_compiler_type=none
3712
fi
3713
3714
fi
3715
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3716
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3717
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3718
3719
 if
3720
  test "x$enable_dependency_tracking" != xno \
3721
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3722
  am__fastdepCC_TRUE=
3723
  am__fastdepCC_FALSE='#'
3724
else
3725
  am__fastdepCC_TRUE='#'
3726
  am__fastdepCC_FALSE=
3727
fi
3728
3729
3730
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3731
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3732
if test "${lt_cv_path_SED+set}" = set; then
3733
  echo $ECHO_N "(cached) $ECHO_C" >&6
3734
else
3735
  # Loop through the user's path and test for sed and gsed.
3736
# Then use that list of sed's as ones to test for truncation.
3737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738
for as_dir in $PATH
3739
do
3740
  IFS=$as_save_IFS
3741
  test -z "$as_dir" && as_dir=.
3742
  for lt_ac_prog in sed gsed; do
3743
    for ac_exec_ext in '' $ac_executable_extensions; do
3744
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3745
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3746
      fi
3747
    done
3748
  done
3749
done
3750
IFS=$as_save_IFS
3751
lt_ac_max=0
3752
lt_ac_count=0
3753
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3754
# along with /bin/sed that truncates output.
3755
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3756
  test ! -f $lt_ac_sed && continue
3757
  cat /dev/null > conftest.in
3758
  lt_ac_count=0
3759
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3760
  # Check for GNU sed and select it if it is found.
3761
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3762
    lt_cv_path_SED=$lt_ac_sed
3763
    break
3764
  fi
3765
  while true; do
3766
    cat conftest.in conftest.in >conftest.tmp
3767
    mv conftest.tmp conftest.in
3768
    cp conftest.in conftest.nl
3769
    echo >>conftest.nl
3770
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3771
    cmp -s conftest.out conftest.nl || break
3772
    # 10000 chars as input seems more than enough
3773
    test $lt_ac_count -gt 10 && break
3774
    lt_ac_count=`expr $lt_ac_count + 1`
3775
    if test $lt_ac_count -gt $lt_ac_max; then
3776
      lt_ac_max=$lt_ac_count
3777
      lt_cv_path_SED=$lt_ac_sed
3778
    fi
3779
  done
3780
done
3781
3782
fi
3783
3784
SED=$lt_cv_path_SED
3785
3786
{ echo "$as_me:$LINENO: result: $SED" >&5
3787
echo "${ECHO_T}$SED" >&6; }
3788
3789
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3790
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3791
if test "${ac_cv_path_GREP+set}" = set; then
3792
  echo $ECHO_N "(cached) $ECHO_C" >&6
3793
else
3794
  # Extract the first word of "grep ggrep" to use in msg output
3795
if test -z "$GREP"; then
3796
set dummy grep ggrep; ac_prog_name=$2
3797
if test "${ac_cv_path_GREP+set}" = set; then
3798
  echo $ECHO_N "(cached) $ECHO_C" >&6
3799
else
3800
  ac_path_GREP_found=false
3801
# Loop through the user's path and test for each of PROGNAME-LIST
3802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804
do
3805
  IFS=$as_save_IFS
3806
  test -z "$as_dir" && as_dir=.
3807
  for ac_prog in grep ggrep; do
3808
  for ac_exec_ext in '' $ac_executable_extensions; do
3809
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3810
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3811
    # Check for GNU ac_path_GREP and select it if it is found.
3812
  # Check for GNU $ac_path_GREP
3813
case `"$ac_path_GREP" --version 2>&1` in
3814
*GNU*)
3815
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3816
*)
3817
  ac_count=0
3818
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3819
  while :
3820
  do
3821
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3822
    mv "conftest.tmp" "conftest.in"
3823
    cp "conftest.in" "conftest.nl"
3824
    echo 'GREP' >> "conftest.nl"
3825
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827
    ac_count=`expr $ac_count + 1`
3828
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3829
      # Best one so far, save it but keep looking for a better one
3830
      ac_cv_path_GREP="$ac_path_GREP"
3831
      ac_path_GREP_max=$ac_count
3832
    fi
3833
    # 10*(2^10) chars as input seems more than enough
3834
    test $ac_count -gt 10 && break
3835
  done
3836
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837
esac
3838
3839
3840
    $ac_path_GREP_found && break 3
3841
  done
3842
done
3843
3844
done
3845
IFS=$as_save_IFS
3846
3847
3848
fi
3849
3850
GREP="$ac_cv_path_GREP"
3851
if test -z "$GREP"; then
3852
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3853
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3854
   { (exit 1); exit 1; }; }
3855
fi
3856
3857
else
3858
  ac_cv_path_GREP=$GREP
3859
fi
3860
3861
3862
fi
3863
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3864
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3865
 GREP="$ac_cv_path_GREP"
3866
3867
3868
{ echo "$as_me:$LINENO: checking for egrep" >&5
3869
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3870
if test "${ac_cv_path_EGREP+set}" = set; then
3871
  echo $ECHO_N "(cached) $ECHO_C" >&6
3872
else
3873
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3874
   then ac_cv_path_EGREP="$GREP -E"
3875
   else
3876
     # Extract the first word of "egrep" to use in msg output
3877
if test -z "$EGREP"; then
3878
set dummy egrep; ac_prog_name=$2
3879
if test "${ac_cv_path_EGREP+set}" = set; then
3880
  echo $ECHO_N "(cached) $ECHO_C" >&6
3881
else
3882
  ac_path_EGREP_found=false
3883
# Loop through the user's path and test for each of PROGNAME-LIST
3884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3886
do
3887
  IFS=$as_save_IFS
3888
  test -z "$as_dir" && as_dir=.
3889
  for ac_prog in egrep; do
3890
  for ac_exec_ext in '' $ac_executable_extensions; do
3891
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3892
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3893
    # Check for GNU ac_path_EGREP and select it if it is found.
3894
  # Check for GNU $ac_path_EGREP
3895
case `"$ac_path_EGREP" --version 2>&1` in
3896
*GNU*)
3897
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3898
*)
3899
  ac_count=0
3900
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3901
  while :
3902
  do
3903
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3904
    mv "conftest.tmp" "conftest.in"
3905
    cp "conftest.in" "conftest.nl"
3906
    echo 'EGREP' >> "conftest.nl"
3907
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3908
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3909
    ac_count=`expr $ac_count + 1`
3910
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3911
      # Best one so far, save it but keep looking for a better one
3912
      ac_cv_path_EGREP="$ac_path_EGREP"
3913
      ac_path_EGREP_max=$ac_count
3914
    fi
3915
    # 10*(2^10) chars as input seems more than enough
3916
    test $ac_count -gt 10 && break
3917
  done
3918
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3919
esac
3920
3921
3922
    $ac_path_EGREP_found && break 3
3923
  done
3924
done
3925
3926
done
3927
IFS=$as_save_IFS
3928
3929
3930
fi
3931
3932
EGREP="$ac_cv_path_EGREP"
3933
if test -z "$EGREP"; then
3934
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3935
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3936
   { (exit 1); exit 1; }; }
3937
fi
3938
3939
else
3940
  ac_cv_path_EGREP=$EGREP
3941
fi
3942
3943
3944
   fi
3945
fi
3946
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3947
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3948
 EGREP="$ac_cv_path_EGREP"
3949
3950
3951
3952
# Check whether --with-gnu-ld was given.
3953
if test "${with_gnu_ld+set}" = set; then
3954
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3955
else
3956
  with_gnu_ld=no
3957
fi
3958
3959
ac_prog=ld
3960
if test "$GCC" = yes; then
3961
  # Check if gcc -print-prog-name=ld gives a path.
3962
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3963
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3964
  case $host in
3965
  *-*-mingw*)
3966
    # gcc leaves a trailing carriage return which upsets mingw
3967
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3968
  *)
3969
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3970
  esac
3971
  case $ac_prog in
3972
    # Accept absolute paths.
3973
    [\\/]* | ?:[\\/]*)
3974
      re_direlt='/[^/][^/]*/\.\./'
3975
      # Canonicalize the pathname of ld
3976
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3977
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3978
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3979
      done
3980
      test -z "$LD" && LD="$ac_prog"
3981
      ;;
3982
  "")
3983
    # If it fails, then pretend we aren't using GCC.
3984
    ac_prog=ld
3985
    ;;
3986
  *)
3987
    # If it is relative, then search for the first ld in PATH.
3988
    with_gnu_ld=unknown
3989
    ;;
3990
  esac
3991
elif test "$with_gnu_ld" = yes; then
3992
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3993
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3994
else
3995
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3996
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3997
fi
3998
if test "${lt_cv_path_LD+set}" = set; then
3999
  echo $ECHO_N "(cached) $ECHO_C" >&6
4000
else
4001
  if test -z "$LD"; then
4002
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4003
  for ac_dir in $PATH; do
4004
    IFS="$lt_save_ifs"
4005
    test -z "$ac_dir" && ac_dir=.
4006
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4007
      lt_cv_path_LD="$ac_dir/$ac_prog"
4008
      # Check to see if the program is GNU ld.  I'd rather use --version,
4009
      # but apparently some variants of GNU ld only accept -v.
4010
      # Break only if it was the GNU/non-GNU ld that we prefer.
4011
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4012
      *GNU* | *'with BFD'*)
4013
	test "$with_gnu_ld" != no && break
4014
	;;
4015
      *)
4016
	test "$with_gnu_ld" != yes && break
4017
	;;
4018
      esac
4019
    fi
4020
  done
4021
  IFS="$lt_save_ifs"
4022
else
4023
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4024
fi
4025
fi
4026
4027
LD="$lt_cv_path_LD"
4028
if test -n "$LD"; then
4029
  { echo "$as_me:$LINENO: result: $LD" >&5
4030
echo "${ECHO_T}$LD" >&6; }
4031
else
4032
  { echo "$as_me:$LINENO: result: no" >&5
4033
echo "${ECHO_T}no" >&6; }
4034
fi
4035
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4036
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4037
   { (exit 1); exit 1; }; }
4038
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4039
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4040
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4041
  echo $ECHO_N "(cached) $ECHO_C" >&6
4042
else
4043
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4044
case `$LD -v 2>&1 </dev/null` in
4045
*GNU* | *'with BFD'*)
4046
  lt_cv_prog_gnu_ld=yes
4047
  ;;
4048
*)
4049
  lt_cv_prog_gnu_ld=no
4050
  ;;
4051
esac
4052
fi
4053
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4054
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4055
with_gnu_ld=$lt_cv_prog_gnu_ld
4056
4057
4058
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4059
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4060
if test "${lt_cv_ld_reload_flag+set}" = set; then
4061
  echo $ECHO_N "(cached) $ECHO_C" >&6
4062
else
4063
  lt_cv_ld_reload_flag='-r'
4064
fi
4065
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4066
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4067
reload_flag=$lt_cv_ld_reload_flag
4068
case $reload_flag in
4069
"" | " "*) ;;
4070
*) reload_flag=" $reload_flag" ;;
4071
esac
4072
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4073
case $host_os in
4074
  darwin*)
4075
    if test "$GCC" = yes; then
4076
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4077
    else
4078
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4079
    fi
4080
    ;;
4081
esac
4082
4083
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4084
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4085
if test "${lt_cv_path_NM+set}" = set; then
4086
  echo $ECHO_N "(cached) $ECHO_C" >&6
4087
else
4088
  if test -n "$NM"; then
4089
  # Let the user override the test.
4090
  lt_cv_path_NM="$NM"
4091
else
4092
  lt_nm_to_check="${ac_tool_prefix}nm"
4093
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4094
    lt_nm_to_check="$lt_nm_to_check nm"
4095
  fi
4096
  for lt_tmp_nm in $lt_nm_to_check; do
4097
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4098
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4099
      IFS="$lt_save_ifs"
4100
      test -z "$ac_dir" && ac_dir=.
4101
      tmp_nm="$ac_dir/$lt_tmp_nm"
4102
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4103
	# Check to see if the nm accepts a BSD-compat flag.
4104
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4105
	#   nm: unknown option "B" ignored
4106
	# Tru64's nm complains that /dev/null is an invalid object file
4107
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4108
	*/dev/null* | *'Invalid file or object type'*)
4109
	  lt_cv_path_NM="$tmp_nm -B"
4110
	  break
4111
	  ;;
4112
	*)
4113
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4114
	  */dev/null*)
4115
	    lt_cv_path_NM="$tmp_nm -p"
4116
	    break
4117
	    ;;
4118
	  *)
4119
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4120
	    continue # so that we can try to find one that supports BSD flags
4121
	    ;;
4122
	  esac
4123
	  ;;
4124
	esac
4125
      fi
4126
    done
4127
    IFS="$lt_save_ifs"
4128
  done
4129
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4130
fi
4131
fi
4132
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4133
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4134
NM="$lt_cv_path_NM"
4135
4136
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4137
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4138
LN_S=$as_ln_s
4139
if test "$LN_S" = "ln -s"; then
4140
  { echo "$as_me:$LINENO: result: yes" >&5
4141
echo "${ECHO_T}yes" >&6; }
4142
else
4143
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4144
echo "${ECHO_T}no, using $LN_S" >&6; }
4145
fi
4146
4147
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4148
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4149
if test "${lt_cv_deplibs_check_method+set}" = set; then
4150
  echo $ECHO_N "(cached) $ECHO_C" >&6
4151
else
4152
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4153
lt_cv_file_magic_test_file=
4154
lt_cv_deplibs_check_method='unknown'
4155
# Need to set the preceding variable on all platforms that support
4156
# interlibrary dependencies.
4157
# 'none' -- dependencies not supported.
4158
# `unknown' -- same as none, but documents that we really don't know.
4159
# 'pass_all' -- all dependencies passed with no checks.
4160
# 'test_compile' -- check by making test program.
4161
# 'file_magic [[regex]]' -- check by looking for files in library path
4162
# which responds to the $file_magic_cmd with a given extended regex.
4163
# If you have `file' or equivalent on your system and you're not sure
4164
# whether `pass_all' will *always* work, you probably want this one.
4165
4166
case $host_os in
4167
aix[4-9]*)
4168
  lt_cv_deplibs_check_method=pass_all
4169
  ;;
4170
4171
beos*)
4172
  lt_cv_deplibs_check_method=pass_all
4173
  ;;
4174
4175
bsdi[45]*)
4176
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4177
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4178
  lt_cv_file_magic_test_file=/shlib/libc.so
4179
  ;;
4180
4181
cygwin*)
4182
  # func_win32_libid is a shell function defined in ltmain.sh
4183
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4184
  lt_cv_file_magic_cmd='func_win32_libid'
4185
  ;;
4186
4187
mingw* | pw32*)
4188
  # Base MSYS/MinGW do not provide the 'file' command needed by
4189
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4190
  # unless we find 'file', for example because we are cross-compiling.
4191
  if ( file / ) >/dev/null 2>&1; then
4192
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4193
    lt_cv_file_magic_cmd='func_win32_libid'
4194
  else
4195
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4196
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4197
  fi
4198
  ;;
4199
4200
darwin* | rhapsody*)
4201
  lt_cv_deplibs_check_method=pass_all
4202
  ;;
4203
4204
freebsd* | dragonfly*)
4205
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4206
    case $host_cpu in
4207
    i*86 )
4208
      # Not sure whether the presence of OpenBSD here was a mistake.
4209
      # Let's accept both of them until this is cleared up.
4210
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4211
      lt_cv_file_magic_cmd=/usr/bin/file
4212
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4213
      ;;
4214
    esac
4215
  else
4216
    lt_cv_deplibs_check_method=pass_all
4217
  fi
4218
  ;;
4219
4220
gnu*)
4221
  lt_cv_deplibs_check_method=pass_all
4222
  ;;
4223
4224
hpux10.20* | hpux11*)
4225
  lt_cv_file_magic_cmd=/usr/bin/file
4226
  case $host_cpu in
4227
  ia64*)
4228
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4229
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4230
    ;;
4231
  hppa*64*)
4232
    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]'
4233
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4234
    ;;
4235
  *)
4236
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4237
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4238
    ;;
4239
  esac
4240
  ;;
4241
4242
interix[3-9]*)
4243
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4244
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4245
  ;;
4246
4247
irix5* | irix6* | nonstopux*)
4248
  case $LD in
4249
  *-32|*"-32 ") libmagic=32-bit;;
4250
  *-n32|*"-n32 ") libmagic=N32;;
4251
  *-64|*"-64 ") libmagic=64-bit;;
4252
  *) libmagic=never-match;;
4253
  esac
4254
  lt_cv_deplibs_check_method=pass_all
4255
  ;;
4256
4257
# This must be Linux ELF.
4258
linux* | k*bsd*-gnu)
4259
  lt_cv_deplibs_check_method=pass_all
4260
  ;;
4261
4262
netbsd* | netbsdelf*-gnu)
4263
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4264
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265
  else
4266
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4267
  fi
4268
  ;;
4269
4270
newos6*)
4271
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4272
  lt_cv_file_magic_cmd=/usr/bin/file
4273
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4274
  ;;
4275
4276
nto-qnx*)
4277
  lt_cv_deplibs_check_method=unknown
4278
  ;;
4279
4280
openbsd*)
4281
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4282
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4283
  else
4284
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4285
  fi
4286
  ;;
4287
4288
osf3* | osf4* | osf5*)
4289
  lt_cv_deplibs_check_method=pass_all
4290
  ;;
4291
4292
rdos*)
4293
  lt_cv_deplibs_check_method=pass_all
4294
  ;;
4295
4296
solaris*)
4297
  lt_cv_deplibs_check_method=pass_all
4298
  ;;
4299
4300
sysv4 | sysv4.3*)
4301
  case $host_vendor in
4302
  motorola)
4303
    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]'
4304
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4305
    ;;
4306
  ncr)
4307
    lt_cv_deplibs_check_method=pass_all
4308
    ;;
4309
  sequent)
4310
    lt_cv_file_magic_cmd='/bin/file'
4311
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4312
    ;;
4313
  sni)
4314
    lt_cv_file_magic_cmd='/bin/file'
4315
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4316
    lt_cv_file_magic_test_file=/lib/libc.so
4317
    ;;
4318
  siemens)
4319
    lt_cv_deplibs_check_method=pass_all
4320
    ;;
4321
  pc)
4322
    lt_cv_deplibs_check_method=pass_all
4323
    ;;
4324
  esac
4325
  ;;
4326
4327
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4328
  lt_cv_deplibs_check_method=pass_all
4329
  ;;
4330
esac
4331
4332
fi
4333
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4334
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4335
file_magic_cmd=$lt_cv_file_magic_cmd
4336
deplibs_check_method=$lt_cv_deplibs_check_method
4337
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4338
4339
4340
4341
4342
# If no C compiler was specified, use CC.
4343
LTCC=${LTCC-"$CC"}
4344
4345
# If no C compiler flags were specified, use CFLAGS.
4346
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4347
4348
# Allow CC to be a program name with arguments.
4349
compiler=$CC
4350
4351
4352
# Check whether --enable-libtool-lock was given.
4353
if test "${enable_libtool_lock+set}" = set; then
4354
  enableval=$enable_libtool_lock;
4355
fi
4356
4357
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4358
4359
# Some flags need to be propagated to the compiler or linker for good
4360
# libtool support.
4361
case $host in
4362
ia64-*-hpux*)
4363
  # Find out which ABI we are using.
4364
  echo 'int i;' > conftest.$ac_ext
4365
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366
  (eval $ac_compile) 2>&5
4367
  ac_status=$?
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369
  (exit $ac_status); }; then
4370
    case `/usr/bin/file conftest.$ac_objext` in
4371
    *ELF-32*)
4372
      HPUX_IA64_MODE="32"
4373
      ;;
4374
    *ELF-64*)
4375
      HPUX_IA64_MODE="64"
4376
      ;;
4377
    esac
4378
  fi
4379
  rm -rf conftest*
4380
  ;;
4381
*-*-irix6*)
4382
  # Find out which ABI we are using.
4383
  echo '#line 4383 "configure"' > conftest.$ac_ext
4384
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385
  (eval $ac_compile) 2>&5
4386
  ac_status=$?
4387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388
  (exit $ac_status); }; then
4389
   if test "$lt_cv_prog_gnu_ld" = yes; then
4390
    case `/usr/bin/file conftest.$ac_objext` in
4391
    *32-bit*)
4392
      LD="${LD-ld} -melf32bsmip"
4393
      ;;
4394
    *N32*)
4395
      LD="${LD-ld} -melf32bmipn32"
4396
      ;;
4397
    *64-bit*)
4398
      LD="${LD-ld} -melf64bmip"
4399
      ;;
4400
    esac
4401
   else
4402
    case `/usr/bin/file conftest.$ac_objext` in
4403
    *32-bit*)
4404
      LD="${LD-ld} -32"
4405
      ;;
4406
    *N32*)
4407
      LD="${LD-ld} -n32"
4408
      ;;
4409
    *64-bit*)
4410
      LD="${LD-ld} -64"
4411
      ;;
4412
    esac
4413
   fi
4414
  fi
4415
  rm -rf conftest*
4416
  ;;
4417
4418
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4419
s390*-*linux*|sparc*-*linux*)
4420
  # Find out which ABI we are using.
4421
  echo 'int i;' > conftest.$ac_ext
4422
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423
  (eval $ac_compile) 2>&5
4424
  ac_status=$?
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
  (exit $ac_status); }; then
4427
    case `/usr/bin/file conftest.o` in
4428
    *32-bit*)
4429
      case $host in
4430
        x86_64-*kfreebsd*-gnu)
4431
          LD="${LD-ld} -m elf_i386_fbsd"
4432
          ;;
4433
        x86_64-*linux*)
4434
          LD="${LD-ld} -m elf_i386"
4435
          ;;
4436
        ppc64-*linux*|powerpc64-*linux*)
4437
          LD="${LD-ld} -m elf32ppclinux"
4438
          ;;
4439
        s390x-*linux*)
4440
          LD="${LD-ld} -m elf_s390"
4441
          ;;
4442
        sparc64-*linux*)
4443
          LD="${LD-ld} -m elf32_sparc"
4444
          ;;
4445
      esac
4446
      ;;
4447
    *64-bit*)
4448
      case $host in
4449
        x86_64-*kfreebsd*-gnu)
4450
          LD="${LD-ld} -m elf_x86_64_fbsd"
4451
          ;;
4452
        x86_64-*linux*)
4453
          LD="${LD-ld} -m elf_x86_64"
4454
          ;;
4455
        ppc*-*linux*|powerpc*-*linux*)
4456
          LD="${LD-ld} -m elf64ppc"
4457
          ;;
4458
        s390*-*linux*)
4459
          LD="${LD-ld} -m elf64_s390"
4460
          ;;
4461
        sparc*-*linux*)
4462
          LD="${LD-ld} -m elf64_sparc"
4463
          ;;
4464
      esac
4465
      ;;
4466
    esac
4467
  fi
4468
  rm -rf conftest*
4469
  ;;
4470
4471
*-*-sco3.2v5*)
4472
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473
  SAVE_CFLAGS="$CFLAGS"
4474
  CFLAGS="$CFLAGS -belf"
4475
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4477
if test "${lt_cv_cc_needs_belf+set}" = set; then
4478
  echo $ECHO_N "(cached) $ECHO_C" >&6
4479
else
4480
  ac_ext=c
4481
ac_cpp='$CPP $CPPFLAGS'
4482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486
     cat >conftest.$ac_ext <<_ACEOF
4487
/* confdefs.h.  */
4488
_ACEOF
4489
cat confdefs.h >>conftest.$ac_ext
4490
cat >>conftest.$ac_ext <<_ACEOF
4491
/* end confdefs.h.  */
4492
4493
int
4494
main ()
4495
{
4496
4497
  ;
4498
  return 0;
4499
}
4500
_ACEOF
4501
rm -f conftest.$ac_objext conftest$ac_exeext
4502
if { (ac_try="$ac_link"
4503
case "(($ac_try" in
4504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505
  *) ac_try_echo=$ac_try;;
4506
esac
4507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508
  (eval "$ac_link") 2>conftest.er1
4509
  ac_status=$?
4510
  grep -v '^ *+' conftest.er1 >conftest.err
4511
  rm -f conftest.er1
4512
  cat conftest.err >&5
4513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514
  (exit $ac_status); } && {
4515
	 test -z "$ac_c_werror_flag" ||
4516
	 test ! -s conftest.err
4517
       } && test -s conftest$ac_exeext &&
4518
       $as_test_x conftest$ac_exeext; then
4519
  lt_cv_cc_needs_belf=yes
4520
else
4521
  echo "$as_me: failed program was:" >&5
4522
sed 's/^/| /' conftest.$ac_ext >&5
4523
4524
	lt_cv_cc_needs_belf=no
4525
fi
4526
4527
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4528
      conftest$ac_exeext conftest.$ac_ext
4529
     ac_ext=c
4530
ac_cpp='$CPP $CPPFLAGS'
4531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535
fi
4536
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4538
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540
    CFLAGS="$SAVE_CFLAGS"
4541
  fi
4542
  ;;
4543
sparc*-*solaris*)
4544
  # Find out which ABI we are using.
4545
  echo 'int i;' > conftest.$ac_ext
4546
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547
  (eval $ac_compile) 2>&5
4548
  ac_status=$?
4549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550
  (exit $ac_status); }; then
4551
    case `/usr/bin/file conftest.o` in
4552
    *64-bit*)
4553
      case $lt_cv_prog_gnu_ld in
4554
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4555
      *)
4556
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4557
	  LD="${LD-ld} -64"
4558
	fi
4559
	;;
4560
      esac
4561
      ;;
4562
    esac
4563
  fi
4564
  rm -rf conftest*
4565
  ;;
4566
4567
4568
esac
4569
4570
need_locks="$enable_libtool_lock"
4571
4572
4573
ac_ext=c
4574
ac_cpp='$CPP $CPPFLAGS'
4575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4579
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4580
# On Suns, sometimes $CPP names a directory.
4581
if test -n "$CPP" && test -d "$CPP"; then
4582
  CPP=
4583
fi
4584
if test -z "$CPP"; then
4585
  if test "${ac_cv_prog_CPP+set}" = set; then
4586
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
else
4588
      # Double quotes because CPP needs to be expanded
4589
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4590
    do
4591
      ac_preproc_ok=false
4592
for ac_c_preproc_warn_flag in '' yes
4593
do
4594
  # Use a header file that comes with gcc, so configuring glibc
4595
  # with a fresh cross-compiler works.
4596
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597
  # <limits.h> exists even on freestanding compilers.
4598
  # On the NeXT, cc -E runs the code through the compiler's parser,
4599
  # not just through cpp. "Syntax error" is here to catch this case.
4600
  cat >conftest.$ac_ext <<_ACEOF
4601
/* confdefs.h.  */
4602
_ACEOF
4603
cat confdefs.h >>conftest.$ac_ext
4604
cat >>conftest.$ac_ext <<_ACEOF
4605
/* end confdefs.h.  */
4606
#ifdef __STDC__
4607
# include <limits.h>
4608
#else
4609
# include <assert.h>
4610
#endif
4611
		     Syntax error
4612
_ACEOF
4613
if { (ac_try="$ac_cpp conftest.$ac_ext"
4614
case "(($ac_try" in
4615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616
  *) ac_try_echo=$ac_try;;
4617
esac
4618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4620
  ac_status=$?
4621
  grep -v '^ *+' conftest.er1 >conftest.err
4622
  rm -f conftest.er1
4623
  cat conftest.err >&5
4624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625
  (exit $ac_status); } >/dev/null && {
4626
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627
	 test ! -s conftest.err
4628
       }; then
4629
  :
4630
else
4631
  echo "$as_me: failed program was:" >&5
4632
sed 's/^/| /' conftest.$ac_ext >&5
4633
4634
  # Broken: fails on valid input.
4635
continue
4636
fi
4637
4638
rm -f conftest.err conftest.$ac_ext
4639
4640
  # OK, works on sane cases.  Now check whether nonexistent headers
4641
  # can be detected and how.
4642
  cat >conftest.$ac_ext <<_ACEOF
4643
/* confdefs.h.  */
4644
_ACEOF
4645
cat confdefs.h >>conftest.$ac_ext
4646
cat >>conftest.$ac_ext <<_ACEOF
4647
/* end confdefs.h.  */
4648
#include <ac_nonexistent.h>
4649
_ACEOF
4650
if { (ac_try="$ac_cpp conftest.$ac_ext"
4651
case "(($ac_try" in
4652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653
  *) ac_try_echo=$ac_try;;
4654
esac
4655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4657
  ac_status=$?
4658
  grep -v '^ *+' conftest.er1 >conftest.err
4659
  rm -f conftest.er1
4660
  cat conftest.err >&5
4661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
  (exit $ac_status); } >/dev/null && {
4663
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664
	 test ! -s conftest.err
4665
       }; then
4666
  # Broken: success on invalid input.
4667
continue
4668
else
4669
  echo "$as_me: failed program was:" >&5
4670
sed 's/^/| /' conftest.$ac_ext >&5
4671
4672
  # Passes both tests.
4673
ac_preproc_ok=:
4674
break
4675
fi
4676
4677
rm -f conftest.err conftest.$ac_ext
4678
4679
done
4680
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681
rm -f conftest.err conftest.$ac_ext
4682
if $ac_preproc_ok; then
4683
  break
4684
fi
4685
4686
    done
4687
    ac_cv_prog_CPP=$CPP
4688
4689
fi
4690
  CPP=$ac_cv_prog_CPP
4691
else
4692
  ac_cv_prog_CPP=$CPP
4693
fi
4694
{ echo "$as_me:$LINENO: result: $CPP" >&5
4695
echo "${ECHO_T}$CPP" >&6; }
4696
ac_preproc_ok=false
4697
for ac_c_preproc_warn_flag in '' yes
4698
do
4699
  # Use a header file that comes with gcc, so configuring glibc
4700
  # with a fresh cross-compiler works.
4701
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4702
  # <limits.h> exists even on freestanding compilers.
4703
  # On the NeXT, cc -E runs the code through the compiler's parser,
4704
  # not just through cpp. "Syntax error" is here to catch this case.
4705
  cat >conftest.$ac_ext <<_ACEOF
4706
/* confdefs.h.  */
4707
_ACEOF
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h.  */
4711
#ifdef __STDC__
4712
# include <limits.h>
4713
#else
4714
# include <assert.h>
4715
#endif
4716
		     Syntax error
4717
_ACEOF
4718
if { (ac_try="$ac_cpp conftest.$ac_ext"
4719
case "(($ac_try" in
4720
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721
  *) ac_try_echo=$ac_try;;
4722
esac
4723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725
  ac_status=$?
4726
  grep -v '^ *+' conftest.er1 >conftest.err
4727
  rm -f conftest.er1
4728
  cat conftest.err >&5
4729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730
  (exit $ac_status); } >/dev/null && {
4731
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732
	 test ! -s conftest.err
4733
       }; then
4734
  :
4735
else
4736
  echo "$as_me: failed program was:" >&5
4737
sed 's/^/| /' conftest.$ac_ext >&5
4738
4739
  # Broken: fails on valid input.
4740
continue
4741
fi
4742
4743
rm -f conftest.err conftest.$ac_ext
4744
4745
  # OK, works on sane cases.  Now check whether nonexistent headers
4746
  # can be detected and how.
4747
  cat >conftest.$ac_ext <<_ACEOF
4748
/* confdefs.h.  */
4749
_ACEOF
4750
cat confdefs.h >>conftest.$ac_ext
4751
cat >>conftest.$ac_ext <<_ACEOF
4752
/* end confdefs.h.  */
4753
#include <ac_nonexistent.h>
4754
_ACEOF
4755
if { (ac_try="$ac_cpp conftest.$ac_ext"
4756
case "(($ac_try" in
4757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758
  *) ac_try_echo=$ac_try;;
4759
esac
4760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762
  ac_status=$?
4763
  grep -v '^ *+' conftest.er1 >conftest.err
4764
  rm -f conftest.er1
4765
  cat conftest.err >&5
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
  (exit $ac_status); } >/dev/null && {
4768
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769
	 test ! -s conftest.err
4770
       }; then
4771
  # Broken: success on invalid input.
4772
continue
4773
else
4774
  echo "$as_me: failed program was:" >&5
4775
sed 's/^/| /' conftest.$ac_ext >&5
4776
4777
  # Passes both tests.
4778
ac_preproc_ok=:
4779
break
4780
fi
4781
4782
rm -f conftest.err conftest.$ac_ext
4783
4784
done
4785
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786
rm -f conftest.err conftest.$ac_ext
4787
if $ac_preproc_ok; then
4788
  :
4789
else
4790
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4791
See \`config.log' for more details." >&5
4792
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4793
See \`config.log' for more details." >&2;}
4794
   { (exit 1); exit 1; }; }
4795
fi
4796
4797
ac_ext=c
4798
ac_cpp='$CPP $CPPFLAGS'
4799
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803
4804
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4806
if test "${ac_cv_header_stdc+set}" = set; then
4807
  echo $ECHO_N "(cached) $ECHO_C" >&6
4808
else
4809
  cat >conftest.$ac_ext <<_ACEOF
4810
/* confdefs.h.  */
4811
_ACEOF
4812
cat confdefs.h >>conftest.$ac_ext
4813
cat >>conftest.$ac_ext <<_ACEOF
4814
/* end confdefs.h.  */
4815
#include <stdlib.h>
4816
#include <stdarg.h>
4817
#include <string.h>
4818
#include <float.h>
4819
4820
int
4821
main ()
4822
{
4823
4824
  ;
4825
  return 0;
4826
}
4827
_ACEOF
4828
rm -f conftest.$ac_objext
4829
if { (ac_try="$ac_compile"
4830
case "(($ac_try" in
4831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832
  *) ac_try_echo=$ac_try;;
4833
esac
4834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835
  (eval "$ac_compile") 2>conftest.er1
4836
  ac_status=$?
4837
  grep -v '^ *+' conftest.er1 >conftest.err
4838
  rm -f conftest.er1
4839
  cat conftest.err >&5
4840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841
  (exit $ac_status); } && {
4842
	 test -z "$ac_c_werror_flag" ||
4843
	 test ! -s conftest.err
4844
       } && test -s conftest.$ac_objext; then
4845
  ac_cv_header_stdc=yes
4846
else
4847
  echo "$as_me: failed program was:" >&5
4848
sed 's/^/| /' conftest.$ac_ext >&5
4849
4850
	ac_cv_header_stdc=no
4851
fi
4852
4853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854
4855
if test $ac_cv_header_stdc = yes; then
4856
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857
  cat >conftest.$ac_ext <<_ACEOF
4858
/* confdefs.h.  */
4859
_ACEOF
4860
cat confdefs.h >>conftest.$ac_ext
4861
cat >>conftest.$ac_ext <<_ACEOF
4862
/* end confdefs.h.  */
4863
#include <string.h>
4864
4865
_ACEOF
4866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867
  $EGREP "memchr" >/dev/null 2>&1; then
4868
  :
4869
else
4870
  ac_cv_header_stdc=no
4871
fi
4872
rm -f conftest*
4873
4874
fi
4875
4876
if test $ac_cv_header_stdc = yes; then
4877
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4878
  cat >conftest.$ac_ext <<_ACEOF
4879
/* confdefs.h.  */
4880
_ACEOF
4881
cat confdefs.h >>conftest.$ac_ext
4882
cat >>conftest.$ac_ext <<_ACEOF
4883
/* end confdefs.h.  */
4884
#include <stdlib.h>
4885
4886
_ACEOF
4887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888
  $EGREP "free" >/dev/null 2>&1; then
4889
  :
4890
else
4891
  ac_cv_header_stdc=no
4892
fi
4893
rm -f conftest*
4894
4895
fi
4896
4897
if test $ac_cv_header_stdc = yes; then
4898
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899
  if test "$cross_compiling" = yes; then
4900
  :
4901
else
4902
  cat >conftest.$ac_ext <<_ACEOF
4903
/* confdefs.h.  */
4904
_ACEOF
4905
cat confdefs.h >>conftest.$ac_ext
4906
cat >>conftest.$ac_ext <<_ACEOF
4907
/* end confdefs.h.  */
4908
#include <ctype.h>
4909
#include <stdlib.h>
4910
#if ((' ' & 0x0FF) == 0x020)
4911
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4912
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4913
#else
4914
# define ISLOWER(c) \
4915
		   (('a' <= (c) && (c) <= 'i') \
4916
		     || ('j' <= (c) && (c) <= 'r') \
4917
		     || ('s' <= (c) && (c) <= 'z'))
4918
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4919
#endif
4920
4921
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922
int
4923
main ()
4924
{
4925
  int i;
4926
  for (i = 0; i < 256; i++)
4927
    if (XOR (islower (i), ISLOWER (i))
4928
	|| toupper (i) != TOUPPER (i))
4929
      return 2;
4930
  return 0;
4931
}
4932
_ACEOF
4933
rm -f conftest$ac_exeext
4934
if { (ac_try="$ac_link"
4935
case "(($ac_try" in
4936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937
  *) ac_try_echo=$ac_try;;
4938
esac
4939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940
  (eval "$ac_link") 2>&5
4941
  ac_status=$?
4942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4944
  { (case "(($ac_try" in
4945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946
  *) ac_try_echo=$ac_try;;
4947
esac
4948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949
  (eval "$ac_try") 2>&5
4950
  ac_status=$?
4951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952
  (exit $ac_status); }; }; then
4953
  :
4954
else
4955
  echo "$as_me: program exited with status $ac_status" >&5
4956
echo "$as_me: failed program was:" >&5
4957
sed 's/^/| /' conftest.$ac_ext >&5
4958
4959
( exit $ac_status )
4960
ac_cv_header_stdc=no
4961
fi
4962
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963
fi
4964
4965
4966
fi
4967
fi
4968
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4970
if test $ac_cv_header_stdc = yes; then
4971
4972
cat >>confdefs.h <<\_ACEOF
4973
#define STDC_HEADERS 1
4974
_ACEOF
4975
4976
fi
4977
4978
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989
		  inttypes.h stdint.h unistd.h
4990
do
4991
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4993
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4994
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4995
  echo $ECHO_N "(cached) $ECHO_C" >&6
4996
else
4997
  cat >conftest.$ac_ext <<_ACEOF
4998
/* confdefs.h.  */
4999
_ACEOF
5000
cat confdefs.h >>conftest.$ac_ext
5001
cat >>conftest.$ac_ext <<_ACEOF
5002
/* end confdefs.h.  */
5003
$ac_includes_default
5004
5005
#include <$ac_header>
5006
_ACEOF
5007
rm -f conftest.$ac_objext
5008
if { (ac_try="$ac_compile"
5009
case "(($ac_try" in
5010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011
  *) ac_try_echo=$ac_try;;
5012
esac
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014
  (eval "$ac_compile") 2>conftest.er1
5015
  ac_status=$?
5016
  grep -v '^ *+' conftest.er1 >conftest.err
5017
  rm -f conftest.er1
5018
  cat conftest.err >&5
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
  (exit $ac_status); } && {
5021
	 test -z "$ac_c_werror_flag" ||
5022
	 test ! -s conftest.err
5023
       } && test -s conftest.$ac_objext; then
5024
  eval "$as_ac_Header=yes"
5025
else
5026
  echo "$as_me: failed program was:" >&5
5027
sed 's/^/| /' conftest.$ac_ext >&5
5028
5029
	eval "$as_ac_Header=no"
5030
fi
5031
5032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
fi
5034
ac_res=`eval echo '${'$as_ac_Header'}'`
5035
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5036
echo "${ECHO_T}$ac_res" >&6; }
5037
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5038
  cat >>confdefs.h <<_ACEOF
5039
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040
_ACEOF
5041
5042
fi
5043
5044
done
5045
5046
5047
5048
for ac_header in dlfcn.h
5049
do
5050
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5052
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5053
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5054
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055
  echo $ECHO_N "(cached) $ECHO_C" >&6
5056
fi
5057
ac_res=`eval echo '${'$as_ac_Header'}'`
5058
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5059
echo "${ECHO_T}$ac_res" >&6; }
5060
else
5061
  # Is the header compilable?
5062
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5064
cat >conftest.$ac_ext <<_ACEOF
5065
/* confdefs.h.  */
5066
_ACEOF
5067
cat confdefs.h >>conftest.$ac_ext
5068
cat >>conftest.$ac_ext <<_ACEOF
5069
/* end confdefs.h.  */
5070
$ac_includes_default
5071
#include <$ac_header>
5072
_ACEOF
5073
rm -f conftest.$ac_objext
5074
if { (ac_try="$ac_compile"
5075
case "(($ac_try" in
5076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077
  *) ac_try_echo=$ac_try;;
5078
esac
5079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080
  (eval "$ac_compile") 2>conftest.er1
5081
  ac_status=$?
5082
  grep -v '^ *+' conftest.er1 >conftest.err
5083
  rm -f conftest.er1
5084
  cat conftest.err >&5
5085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086
  (exit $ac_status); } && {
5087
	 test -z "$ac_c_werror_flag" ||
5088
	 test ! -s conftest.err
5089
       } && test -s conftest.$ac_objext; then
5090
  ac_header_compiler=yes
5091
else
5092
  echo "$as_me: failed program was:" >&5
5093
sed 's/^/| /' conftest.$ac_ext >&5
5094
5095
	ac_header_compiler=no
5096
fi
5097
5098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100
echo "${ECHO_T}$ac_header_compiler" >&6; }
5101
5102
# Is the header present?
5103
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5105
cat >conftest.$ac_ext <<_ACEOF
5106
/* confdefs.h.  */
5107
_ACEOF
5108
cat confdefs.h >>conftest.$ac_ext
5109
cat >>conftest.$ac_ext <<_ACEOF
5110
/* end confdefs.h.  */
5111
#include <$ac_header>
5112
_ACEOF
5113
if { (ac_try="$ac_cpp conftest.$ac_ext"
5114
case "(($ac_try" in
5115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116
  *) ac_try_echo=$ac_try;;
5117
esac
5118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120
  ac_status=$?
5121
  grep -v '^ *+' conftest.er1 >conftest.err
5122
  rm -f conftest.er1
5123
  cat conftest.err >&5
5124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125
  (exit $ac_status); } >/dev/null && {
5126
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5127
	 test ! -s conftest.err
5128
       }; then
5129
  ac_header_preproc=yes
5130
else
5131
  echo "$as_me: failed program was:" >&5
5132
sed 's/^/| /' conftest.$ac_ext >&5
5133
5134
  ac_header_preproc=no
5135
fi
5136
5137
rm -f conftest.err conftest.$ac_ext
5138
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139
echo "${ECHO_T}$ac_header_preproc" >&6; }
5140
5141
# So?  What about this header?
5142
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143
  yes:no: )
5144
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148
    ac_header_preproc=yes
5149
    ;;
5150
  no:yes:* )
5151
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5154
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5155
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5158
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5159
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163
    ( cat <<\_ASBOX
5164
## ------------------------------------------------------ ##
5165
## Report this to Fabrice Rey (fabounet@users.berlios.de) ##
5166
## ------------------------------------------------------ ##
5167
_ASBOX
5168
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5169
    ;;
5170
esac
5171
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5172
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5174
  echo $ECHO_N "(cached) $ECHO_C" >&6
5175
else
5176
  eval "$as_ac_Header=\$ac_header_preproc"
5177
fi
5178
ac_res=`eval echo '${'$as_ac_Header'}'`
5179
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5180
echo "${ECHO_T}$ac_res" >&6; }
5181
5182
fi
5183
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184
  cat >>confdefs.h <<_ACEOF
5185
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186
_ACEOF
5187
5188
fi
5189
5190
done
5191
5192
ac_ext=cpp
5193
ac_cpp='$CXXCPP $CPPFLAGS'
5194
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197
if test -z "$CXX"; then
5198
  if test -n "$CCC"; then
5199
    CXX=$CCC
5200
  else
5201
    if test -n "$ac_tool_prefix"; then
5202
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203
  do
5204
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208
if test "${ac_cv_prog_CXX+set}" = set; then
5209
  echo $ECHO_N "(cached) $ECHO_C" >&6
5210
else
5211
  if test -n "$CXX"; then
5212
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213
else
5214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215
for as_dir in $PATH
5216
do
5217
  IFS=$as_save_IFS
5218
  test -z "$as_dir" && as_dir=.
5219
  for ac_exec_ext in '' $ac_executable_extensions; do
5220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223
    break 2
5224
  fi
5225
done
5226
done
5227
IFS=$as_save_IFS
5228
5229
fi
5230
fi
5231
CXX=$ac_cv_prog_CXX
5232
if test -n "$CXX"; then
5233
  { echo "$as_me:$LINENO: result: $CXX" >&5
5234
echo "${ECHO_T}$CXX" >&6; }
5235
else
5236
  { echo "$as_me:$LINENO: result: no" >&5
5237
echo "${ECHO_T}no" >&6; }
5238
fi
5239
5240
5241
    test -n "$CXX" && break
5242
  done
5243
fi
5244
if test -z "$CXX"; then
5245
  ac_ct_CXX=$CXX
5246
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247
do
5248
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5249
set dummy $ac_prog; ac_word=$2
5250
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253
  echo $ECHO_N "(cached) $ECHO_C" >&6
5254
else
5255
  if test -n "$ac_ct_CXX"; then
5256
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257
else
5258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259
for as_dir in $PATH
5260
do
5261
  IFS=$as_save_IFS
5262
  test -z "$as_dir" && as_dir=.
5263
  for ac_exec_ext in '' $ac_executable_extensions; do
5264
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267
    break 2
5268
  fi
5269
done
5270
done
5271
IFS=$as_save_IFS
5272
5273
fi
5274
fi
5275
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276
if test -n "$ac_ct_CXX"; then
5277
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5278
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279
else
5280
  { echo "$as_me:$LINENO: result: no" >&5
5281
echo "${ECHO_T}no" >&6; }
5282
fi
5283
5284
5285
  test -n "$ac_ct_CXX" && break
5286
done
5287
5288
  if test "x$ac_ct_CXX" = x; then
5289
    CXX="g++"
5290
  else
5291
    case $cross_compiling:$ac_tool_warned in
5292
yes:)
5293
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5294
whose name does not start with the host triplet.  If you think this
5295
configuration is useful to you, please write to autoconf@gnu.org." >&5
5296
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5297
whose name does not start with the host triplet.  If you think this
5298
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5299
ac_tool_warned=yes ;;
5300
esac
5301
    CXX=$ac_ct_CXX
5302
  fi
5303
fi
5304
5305
  fi
5306
fi
5307
# Provide some information about the compiler.
5308
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5309
ac_compiler=`set X $ac_compile; echo $2`
5310
{ (ac_try="$ac_compiler --version >&5"
5311
case "(($ac_try" in
5312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313
  *) ac_try_echo=$ac_try;;
5314
esac
5315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316
  (eval "$ac_compiler --version >&5") 2>&5
5317
  ac_status=$?
5318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
  (exit $ac_status); }
5320
{ (ac_try="$ac_compiler -v >&5"
5321
case "(($ac_try" in
5322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323
  *) ac_try_echo=$ac_try;;
5324
esac
5325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326
  (eval "$ac_compiler -v >&5") 2>&5
5327
  ac_status=$?
5328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329
  (exit $ac_status); }
5330
{ (ac_try="$ac_compiler -V >&5"
5331
case "(($ac_try" in
5332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333
  *) ac_try_echo=$ac_try;;
5334
esac
5335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336
  (eval "$ac_compiler -V >&5") 2>&5
5337
  ac_status=$?
5338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339
  (exit $ac_status); }
5340
5341
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5342
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5343
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344
  echo $ECHO_N "(cached) $ECHO_C" >&6
5345
else
5346
  cat >conftest.$ac_ext <<_ACEOF
5347
/* confdefs.h.  */
5348
_ACEOF
5349
cat confdefs.h >>conftest.$ac_ext
5350
cat >>conftest.$ac_ext <<_ACEOF
5351
/* end confdefs.h.  */
5352
5353
int
5354
main ()
5355
{
5356
#ifndef __GNUC__
5357
       choke me
5358
#endif
5359
5360
  ;
5361
  return 0;
5362
}
5363
_ACEOF
5364
rm -f conftest.$ac_objext
5365
if { (ac_try="$ac_compile"
5366
case "(($ac_try" in
5367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368
  *) ac_try_echo=$ac_try;;
5369
esac
5370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371
  (eval "$ac_compile") 2>conftest.er1
5372
  ac_status=$?
5373
  grep -v '^ *+' conftest.er1 >conftest.err
5374
  rm -f conftest.er1
5375
  cat conftest.err >&5
5376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
  (exit $ac_status); } && {
5378
	 test -z "$ac_cxx_werror_flag" ||
5379
	 test ! -s conftest.err
5380
       } && test -s conftest.$ac_objext; then
5381
  ac_compiler_gnu=yes
5382
else
5383
  echo "$as_me: failed program was:" >&5
5384
sed 's/^/| /' conftest.$ac_ext >&5
5385
5386
	ac_compiler_gnu=no
5387
fi
5388
5389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5391
5392
fi
5393
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5394
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395
GXX=`test $ac_compiler_gnu = yes && echo yes`
5396
ac_test_CXXFLAGS=${CXXFLAGS+set}
5397
ac_save_CXXFLAGS=$CXXFLAGS
5398
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5399
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5400
if test "${ac_cv_prog_cxx_g+set}" = set; then
5401
  echo $ECHO_N "(cached) $ECHO_C" >&6
5402
else
5403
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404
   ac_cxx_werror_flag=yes
5405
   ac_cv_prog_cxx_g=no
5406
   CXXFLAGS="-g"
5407
   cat >conftest.$ac_ext <<_ACEOF
5408
/* confdefs.h.  */
5409
_ACEOF
5410
cat confdefs.h >>conftest.$ac_ext
5411
cat >>conftest.$ac_ext <<_ACEOF
5412
/* end confdefs.h.  */
5413
5414
int
5415
main ()
5416
{
5417
5418
  ;
5419
  return 0;
5420
}
5421
_ACEOF
5422
rm -f conftest.$ac_objext
5423
if { (ac_try="$ac_compile"
5424
case "(($ac_try" in
5425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426
  *) ac_try_echo=$ac_try;;
5427
esac
5428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429
  (eval "$ac_compile") 2>conftest.er1
5430
  ac_status=$?
5431
  grep -v '^ *+' conftest.er1 >conftest.err
5432
  rm -f conftest.er1
5433
  cat conftest.err >&5
5434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435
  (exit $ac_status); } && {
5436
	 test -z "$ac_cxx_werror_flag" ||
5437
	 test ! -s conftest.err
5438
       } && test -s conftest.$ac_objext; then
5439
  ac_cv_prog_cxx_g=yes
5440
else
5441
  echo "$as_me: failed program was:" >&5
5442
sed 's/^/| /' conftest.$ac_ext >&5
5443
5444
	CXXFLAGS=""
5445
      cat >conftest.$ac_ext <<_ACEOF
5446
/* confdefs.h.  */
5447
_ACEOF
5448
cat confdefs.h >>conftest.$ac_ext
5449
cat >>conftest.$ac_ext <<_ACEOF
5450
/* end confdefs.h.  */
5451
5452
int
5453
main ()
5454
{
5455
5456
  ;
5457
  return 0;
5458
}
5459
_ACEOF
5460
rm -f conftest.$ac_objext
5461
if { (ac_try="$ac_compile"
5462
case "(($ac_try" in
5463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464
  *) ac_try_echo=$ac_try;;
5465
esac
5466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467
  (eval "$ac_compile") 2>conftest.er1
5468
  ac_status=$?
5469
  grep -v '^ *+' conftest.er1 >conftest.err
5470
  rm -f conftest.er1
5471
  cat conftest.err >&5
5472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473
  (exit $ac_status); } && {
5474
	 test -z "$ac_cxx_werror_flag" ||
5475
	 test ! -s conftest.err
5476
       } && test -s conftest.$ac_objext; then
5477
  :
5478
else
5479
  echo "$as_me: failed program was:" >&5
5480
sed 's/^/| /' conftest.$ac_ext >&5
5481
5482
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483
	 CXXFLAGS="-g"
5484
	 cat >conftest.$ac_ext <<_ACEOF
5485
/* confdefs.h.  */
5486
_ACEOF
5487
cat confdefs.h >>conftest.$ac_ext
5488
cat >>conftest.$ac_ext <<_ACEOF
5489
/* end confdefs.h.  */
5490
5491
int
5492
main ()
5493
{
5494
5495
  ;
5496
  return 0;
5497
}
5498
_ACEOF
5499
rm -f conftest.$ac_objext
5500
if { (ac_try="$ac_compile"
5501
case "(($ac_try" in
5502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503
  *) ac_try_echo=$ac_try;;
5504
esac
5505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506
  (eval "$ac_compile") 2>conftest.er1
5507
  ac_status=$?
5508
  grep -v '^ *+' conftest.er1 >conftest.err
5509
  rm -f conftest.er1
5510
  cat conftest.err >&5
5511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512
  (exit $ac_status); } && {
5513
	 test -z "$ac_cxx_werror_flag" ||
5514
	 test ! -s conftest.err
5515
       } && test -s conftest.$ac_objext; then
5516
  ac_cv_prog_cxx_g=yes
5517
else
5518
  echo "$as_me: failed program was:" >&5
5519
sed 's/^/| /' conftest.$ac_ext >&5
5520
5521
5522
fi
5523
5524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
fi
5526
5527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528
fi
5529
5530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532
fi
5533
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5534
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535
if test "$ac_test_CXXFLAGS" = set; then
5536
  CXXFLAGS=$ac_save_CXXFLAGS
5537
elif test $ac_cv_prog_cxx_g = yes; then
5538
  if test "$GXX" = yes; then
5539
    CXXFLAGS="-g -O2"
5540
  else
5541
    CXXFLAGS="-g"
5542
  fi
5543
else
5544
  if test "$GXX" = yes; then
5545
    CXXFLAGS="-O2"
5546
  else
5547
    CXXFLAGS=
5548
  fi
5549
fi
5550
ac_ext=cpp
5551
ac_cpp='$CXXCPP $CPPFLAGS'
5552
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5555
5556
depcc="$CXX"  am_compiler_list=
5557
5558
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5559
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5560
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5561
  echo $ECHO_N "(cached) $ECHO_C" >&6
5562
else
5563
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5564
  # We make a subdir and do the tests there.  Otherwise we can end up
5565
  # making bogus files that we don't know about and never remove.  For
5566
  # instance it was reported that on HP-UX the gcc test will end up
5567
  # making a dummy file named `D' -- because `-MD' means `put the output
5568
  # in D'.
5569
  mkdir conftest.dir
5570
  # Copy depcomp to subdir because otherwise we won't find it if we're
5571
  # using a relative directory.
5572
  cp "$am_depcomp" conftest.dir
5573
  cd conftest.dir
5574
  # We will build objects and dependencies in a subdirectory because
5575
  # it helps to detect inapplicable dependency modes.  For instance
5576
  # both Tru64's cc and ICC support -MD to output dependencies as a
5577
  # side effect of compilation, but ICC will put the dependencies in
5578
  # the current directory while Tru64 will put them in the object
5579
  # directory.
5580
  mkdir sub
5581
5582
  am_cv_CXX_dependencies_compiler_type=none
5583
  if test "$am_compiler_list" = ""; then
5584
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5585
  fi
5586
  for depmode in $am_compiler_list; do
5587
    # Setup a source with many dependencies, because some compilers
5588
    # like to wrap large dependency lists on column 80 (with \), and
5589
    # we should not choose a depcomp mode which is confused by this.
5590
    #
5591
    # We need to recreate these files for each test, as the compiler may
5592
    # overwrite some of them when testing with obscure command lines.
5593
    # This happens at least with the AIX C compiler.
5594
    : > sub/conftest.c
5595
    for i in 1 2 3 4 5 6; do
5596
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5597
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5598
      # Solaris 8's {/usr,}/bin/sh.
5599
      touch sub/conftst$i.h
5600
    done
5601
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5602
5603
    case $depmode in
5604
    nosideeffect)
5605
      # after this tag, mechanisms are not by side-effect, so they'll
5606
      # only be used when explicitly requested
5607
      if test "x$enable_dependency_tracking" = xyes; then
5608
	continue
5609
      else
5610
	break
5611
      fi
5612
      ;;
5613
    none) break ;;
5614
    esac
5615
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616
    # mode.  It turns out that the SunPro C++ compiler does not properly
5617
    # handle `-M -o', and we need to detect this.
5618
    if depmode=$depmode \
5619
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5620
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5622
         >/dev/null 2>conftest.err &&
5623
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5624
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5626
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627
      # icc doesn't choke on unknown options, it will just issue warnings
5628
      # or remarks (even with -Werror).  So we grep stderr for any message
5629
      # that says an option was ignored or not supported.
5630
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5631
      #   icc: Command line warning: ignoring option '-M'; no argument required
5632
      # The diagnosis changed in icc 8.0:
5633
      #   icc: Command line remark: option '-MP' not supported
5634
      if (grep 'ignoring option' conftest.err ||
5635
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636
        am_cv_CXX_dependencies_compiler_type=$depmode
5637
        break
5638
      fi
5639
    fi
5640
  done
5641
5642
  cd ..
5643
  rm -rf conftest.dir
5644
else
5645
  am_cv_CXX_dependencies_compiler_type=none
5646
fi
5647
5648
fi
5649
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5650
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5651
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5652
5653
 if
5654
  test "x$enable_dependency_tracking" != xno \
5655
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5656
  am__fastdepCXX_TRUE=
5657
  am__fastdepCXX_FALSE='#'
5658
else
5659
  am__fastdepCXX_TRUE='#'
5660
  am__fastdepCXX_FALSE=
5661
fi
5662
5663
5664
5665
5666
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668
    (test "X$CXX" != "Xg++"))) ; then
5669
  ac_ext=cpp
5670
ac_cpp='$CXXCPP $CPPFLAGS'
5671
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5675
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5676
if test -z "$CXXCPP"; then
5677
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5678
  echo $ECHO_N "(cached) $ECHO_C" >&6
5679
else
5680
      # Double quotes because CXXCPP needs to be expanded
5681
    for CXXCPP in "$CXX -E" "/lib/cpp"
5682
    do
5683
      ac_preproc_ok=false
5684
for ac_cxx_preproc_warn_flag in '' yes
5685
do
5686
  # Use a header file that comes with gcc, so configuring glibc
5687
  # with a fresh cross-compiler works.
5688
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689
  # <limits.h> exists even on freestanding compilers.
5690
  # On the NeXT, cc -E runs the code through the compiler's parser,
5691
  # not just through cpp. "Syntax error" is here to catch this case.
5692
  cat >conftest.$ac_ext <<_ACEOF
5693
/* confdefs.h.  */
5694
_ACEOF
5695
cat confdefs.h >>conftest.$ac_ext
5696
cat >>conftest.$ac_ext <<_ACEOF
5697
/* end confdefs.h.  */
5698
#ifdef __STDC__
5699
# include <limits.h>
5700
#else
5701
# include <assert.h>
5702
#endif
5703
		     Syntax error
5704
_ACEOF
5705
if { (ac_try="$ac_cpp conftest.$ac_ext"
5706
case "(($ac_try" in
5707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708
  *) ac_try_echo=$ac_try;;
5709
esac
5710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712
  ac_status=$?
5713
  grep -v '^ *+' conftest.er1 >conftest.err
5714
  rm -f conftest.er1
5715
  cat conftest.err >&5
5716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
  (exit $ac_status); } >/dev/null && {
5718
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719
	 test ! -s conftest.err
5720
       }; then
5721
  :
5722
else
5723
  echo "$as_me: failed program was:" >&5
5724
sed 's/^/| /' conftest.$ac_ext >&5
5725
5726
  # Broken: fails on valid input.
5727
continue
5728
fi
5729
5730
rm -f conftest.err conftest.$ac_ext
5731
5732
  # OK, works on sane cases.  Now check whether nonexistent headers
5733
  # can be detected and how.
5734
  cat >conftest.$ac_ext <<_ACEOF
5735
/* confdefs.h.  */
5736
_ACEOF
5737
cat confdefs.h >>conftest.$ac_ext
5738
cat >>conftest.$ac_ext <<_ACEOF
5739
/* end confdefs.h.  */
5740
#include <ac_nonexistent.h>
5741
_ACEOF
5742
if { (ac_try="$ac_cpp conftest.$ac_ext"
5743
case "(($ac_try" in
5744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745
  *) ac_try_echo=$ac_try;;
5746
esac
5747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749
  ac_status=$?
5750
  grep -v '^ *+' conftest.er1 >conftest.err
5751
  rm -f conftest.er1
5752
  cat conftest.err >&5
5753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754
  (exit $ac_status); } >/dev/null && {
5755
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756
	 test ! -s conftest.err
5757
       }; then
5758
  # Broken: success on invalid input.
5759
continue
5760
else
5761
  echo "$as_me: failed program was:" >&5
5762
sed 's/^/| /' conftest.$ac_ext >&5
5763
5764
  # Passes both tests.
5765
ac_preproc_ok=:
5766
break
5767
fi
5768
5769
rm -f conftest.err conftest.$ac_ext
5770
5771
done
5772
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773
rm -f conftest.err conftest.$ac_ext
5774
if $ac_preproc_ok; then
5775
  break
5776
fi
5777
5778
    done
5779
    ac_cv_prog_CXXCPP=$CXXCPP
5780
5781
fi
5782
  CXXCPP=$ac_cv_prog_CXXCPP
5783
else
5784
  ac_cv_prog_CXXCPP=$CXXCPP
5785
fi
5786
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5787
echo "${ECHO_T}$CXXCPP" >&6; }
5788
ac_preproc_ok=false
5789
for ac_cxx_preproc_warn_flag in '' yes
5790
do
5791
  # Use a header file that comes with gcc, so configuring glibc
5792
  # with a fresh cross-compiler works.
5793
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794
  # <limits.h> exists even on freestanding compilers.
5795
  # On the NeXT, cc -E runs the code through the compiler's parser,
5796
  # not just through cpp. "Syntax error" is here to catch this case.
5797
  cat >conftest.$ac_ext <<_ACEOF
5798
/* confdefs.h.  */
5799
_ACEOF
5800
cat confdefs.h >>conftest.$ac_ext
5801
cat >>conftest.$ac_ext <<_ACEOF
5802
/* end confdefs.h.  */
5803
#ifdef __STDC__
5804
# include <limits.h>
5805
#else
5806
# include <assert.h>
5807
#endif
5808
		     Syntax error
5809
_ACEOF
5810
if { (ac_try="$ac_cpp conftest.$ac_ext"
5811
case "(($ac_try" in
5812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813
  *) ac_try_echo=$ac_try;;
5814
esac
5815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817
  ac_status=$?
5818
  grep -v '^ *+' conftest.er1 >conftest.err
5819
  rm -f conftest.er1
5820
  cat conftest.err >&5
5821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822
  (exit $ac_status); } >/dev/null && {
5823
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824
	 test ! -s conftest.err
5825
       }; then
5826
  :
5827
else
5828
  echo "$as_me: failed program was:" >&5
5829
sed 's/^/| /' conftest.$ac_ext >&5
5830
5831
  # Broken: fails on valid input.
5832
continue
5833
fi
5834
5835
rm -f conftest.err conftest.$ac_ext
5836
5837
  # OK, works on sane cases.  Now check whether nonexistent headers
5838
  # can be detected and how.
5839
  cat >conftest.$ac_ext <<_ACEOF
5840
/* confdefs.h.  */
5841
_ACEOF
5842
cat confdefs.h >>conftest.$ac_ext
5843
cat >>conftest.$ac_ext <<_ACEOF
5844
/* end confdefs.h.  */
5845
#include <ac_nonexistent.h>
5846
_ACEOF
5847
if { (ac_try="$ac_cpp conftest.$ac_ext"
5848
case "(($ac_try" in
5849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850
  *) ac_try_echo=$ac_try;;
5851
esac
5852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854
  ac_status=$?
5855
  grep -v '^ *+' conftest.er1 >conftest.err
5856
  rm -f conftest.er1
5857
  cat conftest.err >&5
5858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
  (exit $ac_status); } >/dev/null && {
5860
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861
	 test ! -s conftest.err
5862
       }; then
5863
  # Broken: success on invalid input.
5864
continue
5865
else
5866
  echo "$as_me: failed program was:" >&5
5867
sed 's/^/| /' conftest.$ac_ext >&5
5868
5869
  # Passes both tests.
5870
ac_preproc_ok=:
5871
break
5872
fi
5873
5874
rm -f conftest.err conftest.$ac_ext
5875
5876
done
5877
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878
rm -f conftest.err conftest.$ac_ext
5879
if $ac_preproc_ok; then
5880
  :
5881
else
5882
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883
See \`config.log' for more details." >&5
5884
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5885
See \`config.log' for more details." >&2;}
5886
   { (exit 1); exit 1; }; }
5887
fi
5888
5889
ac_ext=cpp
5890
ac_cpp='$CXXCPP $CPPFLAGS'
5891
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895
fi
5896
5897
5898
ac_ext=f
5899
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5900
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5902
if test -n "$ac_tool_prefix"; then
5903
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5904
  do
5905
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909
if test "${ac_cv_prog_F77+set}" = set; then
5910
  echo $ECHO_N "(cached) $ECHO_C" >&6
5911
else
5912
  if test -n "$F77"; then
5913
  ac_cv_prog_F77="$F77" # Let the user override the test.
5914
else
5915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916
for as_dir in $PATH
5917
do
5918
  IFS=$as_save_IFS
5919
  test -z "$as_dir" && as_dir=.
5920
  for ac_exec_ext in '' $ac_executable_extensions; do
5921
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5923
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924
    break 2
5925
  fi
5926
done
5927
done
5928
IFS=$as_save_IFS
5929
5930
fi
5931
fi
5932
F77=$ac_cv_prog_F77
5933
if test -n "$F77"; then
5934
  { echo "$as_me:$LINENO: result: $F77" >&5
5935
echo "${ECHO_T}$F77" >&6; }
5936
else
5937
  { echo "$as_me:$LINENO: result: no" >&5
5938
echo "${ECHO_T}no" >&6; }
5939
fi
5940
5941
5942
    test -n "$F77" && break
5943
  done
5944
fi
5945
if test -z "$F77"; then
5946
  ac_ct_F77=$F77
5947
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5948
do
5949
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5950
set dummy $ac_prog; ac_word=$2
5951
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5954
  echo $ECHO_N "(cached) $ECHO_C" >&6
5955
else
5956
  if test -n "$ac_ct_F77"; then
5957
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5958
else
5959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960
for as_dir in $PATH
5961
do
5962
  IFS=$as_save_IFS
5963
  test -z "$as_dir" && as_dir=.
5964
  for ac_exec_ext in '' $ac_executable_extensions; do
5965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966
    ac_cv_prog_ac_ct_F77="$ac_prog"
5967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968
    break 2
5969
  fi
5970
done
5971
done
5972
IFS=$as_save_IFS
5973
5974
fi
5975
fi
5976
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5977
if test -n "$ac_ct_F77"; then
5978
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5979
echo "${ECHO_T}$ac_ct_F77" >&6; }
5980
else
5981
  { echo "$as_me:$LINENO: result: no" >&5
5982
echo "${ECHO_T}no" >&6; }
5983
fi
5984
5985
5986
  test -n "$ac_ct_F77" && break
5987
done
5988
5989
  if test "x$ac_ct_F77" = x; then
5990
    F77=""
5991
  else
5992
    case $cross_compiling:$ac_tool_warned in
5993
yes:)
5994
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5995
whose name does not start with the host triplet.  If you think this
5996
configuration is useful to you, please write to autoconf@gnu.org." >&5
5997
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5998
whose name does not start with the host triplet.  If you think this
5999
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6000
ac_tool_warned=yes ;;
6001
esac
6002
    F77=$ac_ct_F77
6003
  fi
6004
fi
6005
6006
6007
# Provide some information about the compiler.
6008
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6009
ac_compiler=`set X $ac_compile; echo $2`
6010
{ (ac_try="$ac_compiler --version >&5"
6011
case "(($ac_try" in
6012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013
  *) ac_try_echo=$ac_try;;
6014
esac
6015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016
  (eval "$ac_compiler --version >&5") 2>&5
6017
  ac_status=$?
6018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019
  (exit $ac_status); }
6020
{ (ac_try="$ac_compiler -v >&5"
6021
case "(($ac_try" in
6022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023
  *) ac_try_echo=$ac_try;;
6024
esac
6025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026
  (eval "$ac_compiler -v >&5") 2>&5
6027
  ac_status=$?
6028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029
  (exit $ac_status); }
6030
{ (ac_try="$ac_compiler -V >&5"
6031
case "(($ac_try" in
6032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033
  *) ac_try_echo=$ac_try;;
6034
esac
6035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036
  (eval "$ac_compiler -V >&5") 2>&5
6037
  ac_status=$?
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039
  (exit $ac_status); }
6040
rm -f a.out
6041
6042
# If we don't use `.F' as extension, the preprocessor is not run on the
6043
# input file.  (Note that this only needs to work for GNU compilers.)
6044
ac_save_ext=$ac_ext
6045
ac_ext=F
6046
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6047
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6048
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6049
  echo $ECHO_N "(cached) $ECHO_C" >&6
6050
else
6051
  cat >conftest.$ac_ext <<_ACEOF
6052
      program main
6053
#ifndef __GNUC__
6054
       choke me
6055
#endif
6056
6057
      end
6058
_ACEOF
6059
rm -f conftest.$ac_objext
6060
if { (ac_try="$ac_compile"
6061
case "(($ac_try" in
6062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063
  *) ac_try_echo=$ac_try;;
6064
esac
6065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066
  (eval "$ac_compile") 2>conftest.er1
6067
  ac_status=$?
6068
  grep -v '^ *+' conftest.er1 >conftest.err
6069
  rm -f conftest.er1
6070
  cat conftest.err >&5
6071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
  (exit $ac_status); } && {
6073
	 test -z "$ac_f77_werror_flag" ||
6074
	 test ! -s conftest.err
6075
       } && test -s conftest.$ac_objext; then
6076
  ac_compiler_gnu=yes
6077
else
6078
  echo "$as_me: failed program was:" >&5
6079
sed 's/^/| /' conftest.$ac_ext >&5
6080
6081
	ac_compiler_gnu=no
6082
fi
6083
6084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6086
6087
fi
6088
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6089
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6090
ac_ext=$ac_save_ext
6091
ac_test_FFLAGS=${FFLAGS+set}
6092
ac_save_FFLAGS=$FFLAGS
6093
FFLAGS=
6094
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6095
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6096
if test "${ac_cv_prog_f77_g+set}" = set; then
6097
  echo $ECHO_N "(cached) $ECHO_C" >&6
6098
else
6099
  FFLAGS=-g
6100
cat >conftest.$ac_ext <<_ACEOF
6101
      program main
6102
6103
      end
6104
_ACEOF
6105
rm -f conftest.$ac_objext
6106
if { (ac_try="$ac_compile"
6107
case "(($ac_try" in
6108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109
  *) ac_try_echo=$ac_try;;
6110
esac
6111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112
  (eval "$ac_compile") 2>conftest.er1
6113
  ac_status=$?
6114
  grep -v '^ *+' conftest.er1 >conftest.err
6115
  rm -f conftest.er1
6116
  cat conftest.err >&5
6117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118
  (exit $ac_status); } && {
6119
	 test -z "$ac_f77_werror_flag" ||
6120
	 test ! -s conftest.err
6121
       } && test -s conftest.$ac_objext; then
6122
  ac_cv_prog_f77_g=yes
6123
else
6124
  echo "$as_me: failed program was:" >&5
6125
sed 's/^/| /' conftest.$ac_ext >&5
6126
6127
	ac_cv_prog_f77_g=no
6128
fi
6129
6130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131
6132
fi
6133
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6135
if test "$ac_test_FFLAGS" = set; then
6136
  FFLAGS=$ac_save_FFLAGS
6137
elif test $ac_cv_prog_f77_g = yes; then
6138
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139
    FFLAGS="-g -O2"
6140
  else
6141
    FFLAGS="-g"
6142
  fi
6143
else
6144
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145
    FFLAGS="-O2"
6146
  else
6147
    FFLAGS=
6148
  fi
6149
fi
6150
6151
G77=`test $ac_compiler_gnu = yes && echo yes`
6152
ac_ext=c
6153
ac_cpp='$CPP $CPPFLAGS'
6154
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159
6160
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6161
# find the maximum length of command line arguments
6162
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6163
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6164
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6165
  echo $ECHO_N "(cached) $ECHO_C" >&6
6166
else
6167
    i=0
6168
  teststring="ABCD"
6169
6170
  case $build_os in
6171
  msdosdjgpp*)
6172
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6173
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6174
    # during glob expansion).  Even if it were fixed, the result of this
6175
    # check would be larger than it should be.
6176
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6177
    ;;
6178
6179
  gnu*)
6180
    # Under GNU Hurd, this test is not required because there is
6181
    # no limit to the length of command line arguments.
6182
    # Libtool will interpret -1 as no limit whatsoever
6183
    lt_cv_sys_max_cmd_len=-1;
6184
    ;;
6185
6186
  cygwin* | mingw*)
6187
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6188
    # about 5 minutes as the teststring grows exponentially.
6189
    # Worse, since 9x/ME are not pre-emptively multitasking,
6190
    # you end up with a "frozen" computer, even though with patience
6191
    # the test eventually succeeds (with a max line length of 256k).
6192
    # Instead, let's just punt: use the minimum linelength reported by
6193
    # all of the supported platforms: 8192 (on NT/2K/XP).
6194
    lt_cv_sys_max_cmd_len=8192;
6195
    ;;
6196
6197
  amigaos*)
6198
    # On AmigaOS with pdksh, this test takes hours, literally.
6199
    # So we just punt and use a minimum line length of 8192.
6200
    lt_cv_sys_max_cmd_len=8192;
6201
    ;;
6202
6203
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6204
    # This has been around since 386BSD, at least.  Likely further.
6205
    if test -x /sbin/sysctl; then
6206
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6207
    elif test -x /usr/sbin/sysctl; then
6208
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209
    else
6210
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6211
    fi
6212
    # And add a safety zone
6213
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215
    ;;
6216
6217
  interix*)
6218
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6219
    lt_cv_sys_max_cmd_len=196608
6220
    ;;
6221
6222
  osf*)
6223
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6224
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6225
    # nice to cause kernel panics so lets avoid the loop below.
6226
    # First set a reasonable default.
6227
    lt_cv_sys_max_cmd_len=16384
6228
    #
6229
    if test -x /sbin/sysconfig; then
6230
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6231
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6232
      esac
6233
    fi
6234
    ;;
6235
  sco3.2v5*)
6236
    lt_cv_sys_max_cmd_len=102400
6237
    ;;
6238
  sysv5* | sco5v6* | sysv4.2uw2*)
6239
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6240
    if test -n "$kargmax"; then
6241
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6242
    else
6243
      lt_cv_sys_max_cmd_len=32768
6244
    fi
6245
    ;;
6246
  *)
6247
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6248
    if test -n "$lt_cv_sys_max_cmd_len"; then
6249
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251
    else
6252
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6254
	       = "XX$teststring") >/dev/null 2>&1 &&
6255
	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6256
	      lt_cv_sys_max_cmd_len=$new_result &&
6257
	      test $i != 17 # 1/2 MB should be enough
6258
      do
6259
        i=`expr $i + 1`
6260
        teststring=$teststring$teststring
6261
      done
6262
      teststring=
6263
      # Add a significant safety factor because C++ compilers can tack on massive
6264
      # amounts of additional arguments before passing them to the linker.
6265
      # It appears as though 1/2 is a usable value.
6266
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6267
    fi
6268
    ;;
6269
  esac
6270
6271
fi
6272
6273
if test -n $lt_cv_sys_max_cmd_len ; then
6274
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6275
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6276
else
6277
  { echo "$as_me:$LINENO: result: none" >&5
6278
echo "${ECHO_T}none" >&6; }
6279
fi
6280
6281
6282
6283
6284
6285
# Check for command to grab the raw symbol name followed by C symbol from nm.
6286
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6287
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6288
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6289
  echo $ECHO_N "(cached) $ECHO_C" >&6
6290
else
6291
6292
# These are sane defaults that work on at least a few old systems.
6293
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6294
6295
# Character class describing NM global symbol codes.
6296
symcode='[BCDEGRST]'
6297
6298
# Regexp to match symbols that can be accessed directly from C.
6299
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6300
6301
# Transform an extracted symbol line into a proper C declaration
6302
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6303
6304
# Transform an extracted symbol line into symbol name and symbol address
6305
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6306
6307
# Define system-specific variables.
6308
case $host_os in
6309
aix*)
6310
  symcode='[BCDT]'
6311
  ;;
6312
cygwin* | mingw* | pw32*)
6313
  symcode='[ABCDGISTW]'
6314
  ;;
6315
hpux*) # Its linker distinguishes data from code symbols
6316
  if test "$host_cpu" = ia64; then
6317
    symcode='[ABCDEGRST]'
6318
  fi
6319
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6320
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6321
  ;;
6322
linux* | k*bsd*-gnu)
6323
  if test "$host_cpu" = ia64; then
6324
    symcode='[ABCDGIRSTW]'
6325
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6326
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6327
  fi
6328
  ;;
6329
irix* | nonstopux*)
6330
  symcode='[BCDEGRST]'
6331
  ;;
6332
osf*)
6333
  symcode='[BCDEGQRST]'
6334
  ;;
6335
solaris*)
6336
  symcode='[BDRT]'
6337
  ;;
6338
sco3.2v5*)
6339
  symcode='[DT]'
6340
  ;;
6341
sysv4.2uw2*)
6342
  symcode='[DT]'
6343
  ;;
6344
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6345
  symcode='[ABDT]'
6346
  ;;
6347
sysv4)
6348
  symcode='[DFNSTU]'
6349
  ;;
6350
esac
6351
6352
# Handle CRLF in mingw tool chain
6353
opt_cr=
6354
case $build_os in
6355
mingw*)
6356
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357
  ;;
6358
esac
6359
6360
# If we're using GNU nm, then use its standard symbol codes.
6361
case `$NM -V 2>&1` in
6362
*GNU* | *'with BFD'*)
6363
  symcode='[ABCDGIRSTW]' ;;
6364
esac
6365
6366
# Try without a prefix undercore, then with it.
6367
for ac_symprfx in "" "_"; do
6368
6369
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6370
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6371
6372
  # Write the raw and C identifiers.
6373
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6374
6375
  # Check to see that the pipe works correctly.
6376
  pipe_works=no
6377
6378
  rm -f conftest*
6379
  cat > conftest.$ac_ext <<EOF
6380
#ifdef __cplusplus
6381
extern "C" {
6382
#endif
6383
char nm_test_var;
6384
void nm_test_func(){}
6385
#ifdef __cplusplus
6386
}
6387
#endif
6388
int main(){nm_test_var='a';nm_test_func();return(0);}
6389
EOF
6390
6391
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392
  (eval $ac_compile) 2>&5
6393
  ac_status=$?
6394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395
  (exit $ac_status); }; then
6396
    # Now try to grab the symbols.
6397
    nlist=conftest.nm
6398
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6399
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6400
  ac_status=$?
6401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402
  (exit $ac_status); } && test -s "$nlist"; then
6403
      # Try sorting and uniquifying the output.
6404
      if sort "$nlist" | uniq > "$nlist"T; then
6405
	mv -f "$nlist"T "$nlist"
6406
      else
6407
	rm -f "$nlist"T
6408
      fi
6409
6410
      # Make sure that we snagged all the symbols we need.
6411
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6412
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6413
	  cat <<EOF > conftest.$ac_ext
6414
#ifdef __cplusplus
6415
extern "C" {
6416
#endif
6417
6418
EOF
6419
	  # Now generate the symbol file.
6420
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6421
6422
	  cat <<EOF >> conftest.$ac_ext
6423
#if defined (__STDC__) && __STDC__
6424
# define lt_ptr_t void *
6425
#else
6426
# define lt_ptr_t char *
6427
# define const
6428
#endif
6429
6430
/* The mapping between symbol names and symbols. */
6431
const struct {
6432
  const char *name;
6433
  lt_ptr_t address;
6434
}
6435
lt_preloaded_symbols[] =
6436
{
6437
EOF
6438
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6439
	  cat <<\EOF >> conftest.$ac_ext
6440
  {0, (lt_ptr_t) 0}
6441
};
6442
6443
#ifdef __cplusplus
6444
}
6445
#endif
6446
EOF
6447
	  # Now try linking the two files.
6448
	  mv conftest.$ac_objext conftstm.$ac_objext
6449
	  lt_save_LIBS="$LIBS"
6450
	  lt_save_CFLAGS="$CFLAGS"
6451
	  LIBS="conftstm.$ac_objext"
6452
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6453
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454
  (eval $ac_link) 2>&5
6455
  ac_status=$?
6456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6458
	    pipe_works=yes
6459
	  fi
6460
	  LIBS="$lt_save_LIBS"
6461
	  CFLAGS="$lt_save_CFLAGS"
6462
	else
6463
	  echo "cannot find nm_test_func in $nlist" >&5
6464
	fi
6465
      else
6466
	echo "cannot find nm_test_var in $nlist" >&5
6467
      fi
6468
    else
6469
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6470
    fi
6471
  else
6472
    echo "$progname: failed program was:" >&5
6473
    cat conftest.$ac_ext >&5
6474
  fi
6475
  rm -rf conftest* conftst*
6476
6477
  # Do not use the global_symbol_pipe unless it works.
6478
  if test "$pipe_works" = yes; then
6479
    break
6480
  else
6481
    lt_cv_sys_global_symbol_pipe=
6482
  fi
6483
done
6484
6485
fi
6486
6487
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6488
  lt_cv_sys_global_symbol_to_cdecl=
6489
fi
6490
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6491
  { echo "$as_me:$LINENO: result: failed" >&5
6492
echo "${ECHO_T}failed" >&6; }
6493
else
6494
  { echo "$as_me:$LINENO: result: ok" >&5
6495
echo "${ECHO_T}ok" >&6; }
6496
fi
6497
6498
{ echo "$as_me:$LINENO: checking for objdir" >&5
6499
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6500
if test "${lt_cv_objdir+set}" = set; then
6501
  echo $ECHO_N "(cached) $ECHO_C" >&6
6502
else
6503
  rm -f .libs 2>/dev/null
6504
mkdir .libs 2>/dev/null
6505
if test -d .libs; then
6506
  lt_cv_objdir=.libs
6507
else
6508
  # MS-DOS does not allow filenames that begin with a dot.
6509
  lt_cv_objdir=_libs
6510
fi
6511
rmdir .libs 2>/dev/null
6512
fi
6513
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6514
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6515
objdir=$lt_cv_objdir
6516
6517
6518
6519
6520
6521
case $host_os in
6522
aix3*)
6523
  # AIX sometimes has problems with the GCC collect2 program.  For some
6524
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6525
  # vanish in a puff of smoke.
6526
  if test "X${COLLECT_NAMES+set}" != Xset; then
6527
    COLLECT_NAMES=
6528
    export COLLECT_NAMES
6529
  fi
6530
  ;;
6531
esac
6532
6533
# Sed substitution that helps us do robust quoting.  It backslashifies
6534
# metacharacters that are still active within double-quoted strings.
6535
Xsed='sed -e 1s/^X//'
6536
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6537
6538
# Same as above, but do not quote variable references.
6539
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6540
6541
# Sed substitution to delay expansion of an escaped shell variable in a
6542
# double_quote_subst'ed string.
6543
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6544
6545
# Sed substitution to avoid accidental globbing in evaled expressions
6546
no_glob_subst='s/\*/\\\*/g'
6547
6548
# Constants:
6549
rm="rm -f"
6550
6551
# Global variables:
6552
default_ofile=libtool
6553
can_build_shared=yes
6554
6555
# All known linkers require a `.a' archive for static linking (except MSVC,
6556
# which needs '.lib').
6557
libext=a
6558
ltmain="$ac_aux_dir/ltmain.sh"
6559
ofile="$default_ofile"
6560
with_gnu_ld="$lt_cv_prog_gnu_ld"
6561
6562
if test -n "$ac_tool_prefix"; then
6563
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6564
set dummy ${ac_tool_prefix}ar; ac_word=$2
6565
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567
if test "${ac_cv_prog_AR+set}" = set; then
6568
  echo $ECHO_N "(cached) $ECHO_C" >&6
6569
else
6570
  if test -n "$AR"; then
6571
  ac_cv_prog_AR="$AR" # Let the user override the test.
6572
else
6573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574
for as_dir in $PATH
6575
do
6576
  IFS=$as_save_IFS
6577
  test -z "$as_dir" && as_dir=.
6578
  for ac_exec_ext in '' $ac_executable_extensions; do
6579
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6581
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582
    break 2
6583
  fi
6584
done
6585
done
6586
IFS=$as_save_IFS
6587
6588
fi
6589
fi
6590
AR=$ac_cv_prog_AR
6591
if test -n "$AR"; then
6592
  { echo "$as_me:$LINENO: result: $AR" >&5
6593
echo "${ECHO_T}$AR" >&6; }
6594
else
6595
  { echo "$as_me:$LINENO: result: no" >&5
6596
echo "${ECHO_T}no" >&6; }
6597
fi
6598
6599
6600
fi
6601
if test -z "$ac_cv_prog_AR"; then
6602
  ac_ct_AR=$AR
6603
  # Extract the first word of "ar", so it can be a program name with args.
6604
set dummy ar; ac_word=$2
6605
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6608
  echo $ECHO_N "(cached) $ECHO_C" >&6
6609
else
6610
  if test -n "$ac_ct_AR"; then
6611
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6612
else
6613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614
for as_dir in $PATH
6615
do
6616
  IFS=$as_save_IFS
6617
  test -z "$as_dir" && as_dir=.
6618
  for ac_exec_ext in '' $ac_executable_extensions; do
6619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620
    ac_cv_prog_ac_ct_AR="ar"
6621
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622
    break 2
6623
  fi
6624
done
6625
done
6626
IFS=$as_save_IFS
6627
6628
fi
6629
fi
6630
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6631
if test -n "$ac_ct_AR"; then
6632
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6633
echo "${ECHO_T}$ac_ct_AR" >&6; }
6634
else
6635
  { echo "$as_me:$LINENO: result: no" >&5
6636
echo "${ECHO_T}no" >&6; }
6637
fi
6638
6639
  if test "x$ac_ct_AR" = x; then
6640
    AR="false"
6641
  else
6642
    case $cross_compiling:$ac_tool_warned in
6643
yes:)
6644
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6645
whose name does not start with the host triplet.  If you think this
6646
configuration is useful to you, please write to autoconf@gnu.org." >&5
6647
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6648
whose name does not start with the host triplet.  If you think this
6649
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6650
ac_tool_warned=yes ;;
6651
esac
6652
    AR=$ac_ct_AR
6653
  fi
6654
else
6655
  AR="$ac_cv_prog_AR"
6656
fi
6657
6658
if test -n "$ac_tool_prefix"; then
6659
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6660
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6661
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663
if test "${ac_cv_prog_RANLIB+set}" = set; then
6664
  echo $ECHO_N "(cached) $ECHO_C" >&6
6665
else
6666
  if test -n "$RANLIB"; then
6667
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6668
else
6669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670
for as_dir in $PATH
6671
do
6672
  IFS=$as_save_IFS
6673
  test -z "$as_dir" && as_dir=.
6674
  for ac_exec_ext in '' $ac_executable_extensions; do
6675
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678
    break 2
6679
  fi
6680
done
6681
done
6682
IFS=$as_save_IFS
6683
6684
fi
6685
fi
6686
RANLIB=$ac_cv_prog_RANLIB
6687
if test -n "$RANLIB"; then
6688
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6689
echo "${ECHO_T}$RANLIB" >&6; }
6690
else
6691
  { echo "$as_me:$LINENO: result: no" >&5
6692
echo "${ECHO_T}no" >&6; }
6693
fi
6694
6695
6696
fi
6697
if test -z "$ac_cv_prog_RANLIB"; then
6698
  ac_ct_RANLIB=$RANLIB
6699
  # Extract the first word of "ranlib", so it can be a program name with args.
6700
set dummy ranlib; ac_word=$2
6701
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6702
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6704
  echo $ECHO_N "(cached) $ECHO_C" >&6
6705
else
6706
  if test -n "$ac_ct_RANLIB"; then
6707
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6708
else
6709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710
for as_dir in $PATH
6711
do
6712
  IFS=$as_save_IFS
6713
  test -z "$as_dir" && as_dir=.
6714
  for ac_exec_ext in '' $ac_executable_extensions; do
6715
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6717
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718
    break 2
6719
  fi
6720
done
6721
done
6722
IFS=$as_save_IFS
6723
6724
fi
6725
fi
6726
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6727
if test -n "$ac_ct_RANLIB"; then
6728
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6729
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6730
else
6731
  { echo "$as_me:$LINENO: result: no" >&5
6732
echo "${ECHO_T}no" >&6; }
6733
fi
6734
6735
  if test "x$ac_ct_RANLIB" = x; then
6736
    RANLIB=":"
6737
  else
6738
    case $cross_compiling:$ac_tool_warned in
6739
yes:)
6740
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6741
whose name does not start with the host triplet.  If you think this
6742
configuration is useful to you, please write to autoconf@gnu.org." >&5
6743
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6744
whose name does not start with the host triplet.  If you think this
6745
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6746
ac_tool_warned=yes ;;
6747
esac
6748
    RANLIB=$ac_ct_RANLIB
6749
  fi
6750
else
6751
  RANLIB="$ac_cv_prog_RANLIB"
6752
fi
6753
6754
if test -n "$ac_tool_prefix"; then
6755
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6756
set dummy ${ac_tool_prefix}strip; ac_word=$2
6757
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759
if test "${ac_cv_prog_STRIP+set}" = set; then
6760
  echo $ECHO_N "(cached) $ECHO_C" >&6
6761
else
6762
  if test -n "$STRIP"; then
6763
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6764
else
6765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766
for as_dir in $PATH
6767
do
6768
  IFS=$as_save_IFS
6769
  test -z "$as_dir" && as_dir=.
6770
  for ac_exec_ext in '' $ac_executable_extensions; do
6771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774
    break 2
6775
  fi
6776
done
6777
done
6778
IFS=$as_save_IFS
6779
6780
fi
6781
fi
6782
STRIP=$ac_cv_prog_STRIP
6783
if test -n "$STRIP"; then
6784
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6785
echo "${ECHO_T}$STRIP" >&6; }
6786
else
6787
  { echo "$as_me:$LINENO: result: no" >&5
6788
echo "${ECHO_T}no" >&6; }
6789
fi
6790
6791
6792
fi
6793
if test -z "$ac_cv_prog_STRIP"; then
6794
  ac_ct_STRIP=$STRIP
6795
  # Extract the first word of "strip", so it can be a program name with args.
6796
set dummy strip; ac_word=$2
6797
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6800
  echo $ECHO_N "(cached) $ECHO_C" >&6
6801
else
6802
  if test -n "$ac_ct_STRIP"; then
6803
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6804
else
6805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806
for as_dir in $PATH
6807
do
6808
  IFS=$as_save_IFS
6809
  test -z "$as_dir" && as_dir=.
6810
  for ac_exec_ext in '' $ac_executable_extensions; do
6811
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812
    ac_cv_prog_ac_ct_STRIP="strip"
6813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814
    break 2
6815
  fi
6816
done
6817
done
6818
IFS=$as_save_IFS
6819
6820
fi
6821
fi
6822
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6823
if test -n "$ac_ct_STRIP"; then
6824
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6825
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6826
else
6827
  { echo "$as_me:$LINENO: result: no" >&5
6828
echo "${ECHO_T}no" >&6; }
6829
fi
6830
6831
  if test "x$ac_ct_STRIP" = x; then
6832
    STRIP=":"
6833
  else
6834
    case $cross_compiling:$ac_tool_warned in
6835
yes:)
6836
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837
whose name does not start with the host triplet.  If you think this
6838
configuration is useful to you, please write to autoconf@gnu.org." >&5
6839
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840
whose name does not start with the host triplet.  If you think this
6841
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842
ac_tool_warned=yes ;;
6843
esac
6844
    STRIP=$ac_ct_STRIP
6845
  fi
6846
else
6847
  STRIP="$ac_cv_prog_STRIP"
6848
fi
6849
6850
6851
old_CC="$CC"
6852
old_CFLAGS="$CFLAGS"
6853
6854
# Set sane defaults for various variables
6855
test -z "$AR" && AR=ar
6856
test -z "$AR_FLAGS" && AR_FLAGS=cru
6857
test -z "$AS" && AS=as
6858
test -z "$CC" && CC=cc
6859
test -z "$LTCC" && LTCC=$CC
6860
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6861
test -z "$DLLTOOL" && DLLTOOL=dlltool
6862
test -z "$LD" && LD=ld
6863
test -z "$LN_S" && LN_S="ln -s"
6864
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6865
test -z "$NM" && NM=nm
6866
test -z "$SED" && SED=sed
6867
test -z "$OBJDUMP" && OBJDUMP=objdump
6868
test -z "$RANLIB" && RANLIB=:
6869
test -z "$STRIP" && STRIP=:
6870
test -z "$ac_objext" && ac_objext=o
6871
6872
# Determine commands to create old-style static archives.
6873
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6874
old_postinstall_cmds='chmod 644 $oldlib'
6875
old_postuninstall_cmds=
6876
6877
if test -n "$RANLIB"; then
6878
  case $host_os in
6879
  openbsd*)
6880
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6881
    ;;
6882
  *)
6883
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6884
    ;;
6885
  esac
6886
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6887
fi
6888
6889
for cc_temp in $compiler""; do
6890
  case $cc_temp in
6891
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6892
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6893
    \-*) ;;
6894
    *) break;;
6895
  esac
6896
done
6897
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6898
6899
6900
# Only perform the check for file, if the check method requires it
6901
case $deplibs_check_method in
6902
file_magic*)
6903
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6904
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6905
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6906
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6907
  echo $ECHO_N "(cached) $ECHO_C" >&6
6908
else
6909
  case $MAGIC_CMD in
6910
[\\/*] |  ?:[\\/]*)
6911
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6912
  ;;
6913
*)
6914
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6915
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6916
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6917
  for ac_dir in $ac_dummy; do
6918
    IFS="$lt_save_ifs"
6919
    test -z "$ac_dir" && ac_dir=.
6920
    if test -f $ac_dir/${ac_tool_prefix}file; then
6921
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6922
      if test -n "$file_magic_test_file"; then
6923
	case $deplibs_check_method in
6924
	"file_magic "*)
6925
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6926
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6927
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6928
	    $EGREP "$file_magic_regex" > /dev/null; then
6929
	    :
6930
	  else
6931
	    cat <<EOF 1>&2
6932
6933
*** Warning: the command libtool uses to detect shared libraries,
6934
*** $file_magic_cmd, produces output that libtool cannot recognize.
6935
*** The result is that libtool may fail to recognize shared libraries
6936
*** as such.  This will affect the creation of libtool libraries that
6937
*** depend on shared libraries, but programs linked with such libtool
6938
*** libraries will work regardless of this problem.  Nevertheless, you
6939
*** may want to report the problem to your system manager and/or to
6940
*** bug-libtool@gnu.org
6941
6942
EOF
6943
	  fi ;;
6944
	esac
6945
      fi
6946
      break
6947
    fi
6948
  done
6949
  IFS="$lt_save_ifs"
6950
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6951
  ;;
6952
esac
6953
fi
6954
6955
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6956
if test -n "$MAGIC_CMD"; then
6957
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6958
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6959
else
6960
  { echo "$as_me:$LINENO: result: no" >&5
6961
echo "${ECHO_T}no" >&6; }
6962
fi
6963
6964
if test -z "$lt_cv_path_MAGIC_CMD"; then
6965
  if test -n "$ac_tool_prefix"; then
6966
    { echo "$as_me:$LINENO: checking for file" >&5
6967
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6968
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6969
  echo $ECHO_N "(cached) $ECHO_C" >&6
6970
else
6971
  case $MAGIC_CMD in
6972
[\\/*] |  ?:[\\/]*)
6973
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6974
  ;;
6975
*)
6976
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6977
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6978
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6979
  for ac_dir in $ac_dummy; do
6980
    IFS="$lt_save_ifs"
6981
    test -z "$ac_dir" && ac_dir=.
6982
    if test -f $ac_dir/file; then
6983
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6984
      if test -n "$file_magic_test_file"; then
6985
	case $deplibs_check_method in
6986
	"file_magic "*)
6987
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6988
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6990
	    $EGREP "$file_magic_regex" > /dev/null; then
6991
	    :
6992
	  else
6993
	    cat <<EOF 1>&2
6994
6995
*** Warning: the command libtool uses to detect shared libraries,
6996
*** $file_magic_cmd, produces output that libtool cannot recognize.
6997
*** The result is that libtool may fail to recognize shared libraries
6998
*** as such.  This will affect the creation of libtool libraries that
6999
*** depend on shared libraries, but programs linked with such libtool
7000
*** libraries will work regardless of this problem.  Nevertheless, you
7001
*** may want to report the problem to your system manager and/or to
7002
*** bug-libtool@gnu.org
7003
7004
EOF
7005
	  fi ;;
7006
	esac
7007
      fi
7008
      break
7009
    fi
7010
  done
7011
  IFS="$lt_save_ifs"
7012
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7013
  ;;
7014
esac
7015
fi
7016
7017
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018
if test -n "$MAGIC_CMD"; then
7019
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7020
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7021
else
7022
  { echo "$as_me:$LINENO: result: no" >&5
7023
echo "${ECHO_T}no" >&6; }
7024
fi
7025
7026
  else
7027
    MAGIC_CMD=:
7028
  fi
7029
fi
7030
7031
  fi
7032
  ;;
7033
esac
7034
7035
7036
  case $host_os in
7037
    rhapsody* | darwin*)
7038
    if test -n "$ac_tool_prefix"; then
7039
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7040
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7041
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7044
  echo $ECHO_N "(cached) $ECHO_C" >&6
7045
else
7046
  if test -n "$DSYMUTIL"; then
7047
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7048
else
7049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050
for as_dir in $PATH
7051
do
7052
  IFS=$as_save_IFS
7053
  test -z "$as_dir" && as_dir=.
7054
  for ac_exec_ext in '' $ac_executable_extensions; do
7055
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7057
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058
    break 2
7059
  fi
7060
done
7061
done
7062
IFS=$as_save_IFS
7063
7064
fi
7065
fi
7066
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7067
if test -n "$DSYMUTIL"; then
7068
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7069
echo "${ECHO_T}$DSYMUTIL" >&6; }
7070
else
7071
  { echo "$as_me:$LINENO: result: no" >&5
7072
echo "${ECHO_T}no" >&6; }
7073
fi
7074
7075
7076
fi
7077
if test -z "$ac_cv_prog_DSYMUTIL"; then
7078
  ac_ct_DSYMUTIL=$DSYMUTIL
7079
  # Extract the first word of "dsymutil", so it can be a program name with args.
7080
set dummy dsymutil; ac_word=$2
7081
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7084
  echo $ECHO_N "(cached) $ECHO_C" >&6
7085
else
7086
  if test -n "$ac_ct_DSYMUTIL"; then
7087
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7088
else
7089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090
for as_dir in $PATH
7091
do
7092
  IFS=$as_save_IFS
7093
  test -z "$as_dir" && as_dir=.
7094
  for ac_exec_ext in '' $ac_executable_extensions; do
7095
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7097
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098
    break 2
7099
  fi
7100
done
7101
done
7102
IFS=$as_save_IFS
7103
7104
fi
7105
fi
7106
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7107
if test -n "$ac_ct_DSYMUTIL"; then
7108
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7109
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7110
else
7111
  { echo "$as_me:$LINENO: result: no" >&5
7112
echo "${ECHO_T}no" >&6; }
7113
fi
7114
7115
  if test "x$ac_ct_DSYMUTIL" = x; then
7116
    DSYMUTIL=":"
7117
  else
7118
    case $cross_compiling:$ac_tool_warned in
7119
yes:)
7120
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7121
whose name does not start with the host triplet.  If you think this
7122
configuration is useful to you, please write to autoconf@gnu.org." >&5
7123
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7124
whose name does not start with the host triplet.  If you think this
7125
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7126
ac_tool_warned=yes ;;
7127
esac
7128
    DSYMUTIL=$ac_ct_DSYMUTIL
7129
  fi
7130
else
7131
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7132
fi
7133
7134
    if test -n "$ac_tool_prefix"; then
7135
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7136
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7137
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7140
  echo $ECHO_N "(cached) $ECHO_C" >&6
7141
else
7142
  if test -n "$NMEDIT"; then
7143
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7144
else
7145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146
for as_dir in $PATH
7147
do
7148
  IFS=$as_save_IFS
7149
  test -z "$as_dir" && as_dir=.
7150
  for ac_exec_ext in '' $ac_executable_extensions; do
7151
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7153
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154
    break 2
7155
  fi
7156
done
7157
done
7158
IFS=$as_save_IFS
7159
7160
fi
7161
fi
7162
NMEDIT=$ac_cv_prog_NMEDIT
7163
if test -n "$NMEDIT"; then
7164
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7165
echo "${ECHO_T}$NMEDIT" >&6; }
7166
else
7167
  { echo "$as_me:$LINENO: result: no" >&5
7168
echo "${ECHO_T}no" >&6; }
7169
fi
7170
7171
7172
fi
7173
if test -z "$ac_cv_prog_NMEDIT"; then
7174
  ac_ct_NMEDIT=$NMEDIT
7175
  # Extract the first word of "nmedit", so it can be a program name with args.
7176
set dummy nmedit; ac_word=$2
7177
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7180
  echo $ECHO_N "(cached) $ECHO_C" >&6
7181
else
7182
  if test -n "$ac_ct_NMEDIT"; then
7183
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7184
else
7185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186
for as_dir in $PATH
7187
do
7188
  IFS=$as_save_IFS
7189
  test -z "$as_dir" && as_dir=.
7190
  for ac_exec_ext in '' $ac_executable_extensions; do
7191
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7193
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194
    break 2
7195
  fi
7196
done
7197
done
7198
IFS=$as_save_IFS
7199
7200
fi
7201
fi
7202
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7203
if test -n "$ac_ct_NMEDIT"; then
7204
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7205
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7206
else
7207
  { echo "$as_me:$LINENO: result: no" >&5
7208
echo "${ECHO_T}no" >&6; }
7209
fi
7210
7211
  if test "x$ac_ct_NMEDIT" = x; then
7212
    NMEDIT=":"
7213
  else
7214
    case $cross_compiling:$ac_tool_warned in
7215
yes:)
7216
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7217
whose name does not start with the host triplet.  If you think this
7218
configuration is useful to you, please write to autoconf@gnu.org." >&5
7219
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7220
whose name does not start with the host triplet.  If you think this
7221
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7222
ac_tool_warned=yes ;;
7223
esac
7224
    NMEDIT=$ac_ct_NMEDIT
7225
  fi
7226
else
7227
  NMEDIT="$ac_cv_prog_NMEDIT"
7228
fi
7229
7230
7231
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7232
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7233
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7234
  echo $ECHO_N "(cached) $ECHO_C" >&6
7235
else
7236
  lt_cv_apple_cc_single_mod=no
7237
      if test -z "${LT_MULTI_MODULE}"; then
7238
   # By default we will add the -single_module flag. You can override
7239
   # by either setting the environment variable LT_MULTI_MODULE
7240
   # non-empty at configure time, or by adding -multi_module to the
7241
   # link flags.
7242
   echo "int foo(void){return 1;}" > conftest.c
7243
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7244
     -dynamiclib ${wl}-single_module conftest.c
7245
   if test -f libconftest.dylib; then
7246
     lt_cv_apple_cc_single_mod=yes
7247
     rm -rf libconftest.dylib*
7248
   fi
7249
   rm conftest.c
7250
      fi
7251
fi
7252
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7253
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7254
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7255
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7256
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7257
  echo $ECHO_N "(cached) $ECHO_C" >&6
7258
else
7259
  lt_cv_ld_exported_symbols_list=no
7260
      save_LDFLAGS=$LDFLAGS
7261
      echo "_main" > conftest.sym
7262
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7263
      cat >conftest.$ac_ext <<_ACEOF
7264
/* confdefs.h.  */
7265
_ACEOF
7266
cat confdefs.h >>conftest.$ac_ext
7267
cat >>conftest.$ac_ext <<_ACEOF
7268
/* end confdefs.h.  */
7269
7270
int
7271
main ()
7272
{
7273
7274
  ;
7275
  return 0;
7276
}
7277
_ACEOF
7278
rm -f conftest.$ac_objext conftest$ac_exeext
7279
if { (ac_try="$ac_link"
7280
case "(($ac_try" in
7281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282
  *) ac_try_echo=$ac_try;;
7283
esac
7284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285
  (eval "$ac_link") 2>conftest.er1
7286
  ac_status=$?
7287
  grep -v '^ *+' conftest.er1 >conftest.err
7288
  rm -f conftest.er1
7289
  cat conftest.err >&5
7290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291
  (exit $ac_status); } && {
7292
	 test -z "$ac_c_werror_flag" ||
7293
	 test ! -s conftest.err
7294
       } && test -s conftest$ac_exeext &&
7295
       $as_test_x conftest$ac_exeext; then
7296
  lt_cv_ld_exported_symbols_list=yes
7297
else
7298
  echo "$as_me: failed program was:" >&5
7299
sed 's/^/| /' conftest.$ac_ext >&5
7300
7301
	lt_cv_ld_exported_symbols_list=no
7302
fi
7303
7304
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305
      conftest$ac_exeext conftest.$ac_ext
7306
   LDFLAGS="$save_LDFLAGS"
7307
7308
fi
7309
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7310
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7311
    case $host_os in
7312
    rhapsody* | darwin1.[0123])
7313
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7314
    darwin1.*)
7315
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316
    darwin*)
7317
      # if running on 10.5 or later, the deployment target defaults
7318
      # to the OS version, if on x86, and 10.4, the deployment
7319
      # target defaults to 10.4. Don't you love it?
7320
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7321
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7322
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7323
   10.[012]*)
7324
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7325
   10.*)
7326
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327
      esac
7328
    ;;
7329
  esac
7330
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7331
      _lt_dar_single_mod='$single_module'
7332
    fi
7333
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7334
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7335
    else
7336
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7337
    fi
7338
    if test "$DSYMUTIL" != ":"; then
7339
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7340
    else
7341
      _lt_dsymutil=
7342
    fi
7343
    ;;
7344
  esac
7345
7346
7347
enable_dlopen=no
7348
enable_win32_dll=no
7349
7350
# Check whether --enable-libtool-lock was given.
7351
if test "${enable_libtool_lock+set}" = set; then
7352
  enableval=$enable_libtool_lock;
7353
fi
7354
7355
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7356
7357
7358
# Check whether --with-pic was given.
7359
if test "${with_pic+set}" = set; then
7360
  withval=$with_pic; pic_mode="$withval"
7361
else
7362
  pic_mode=default
7363
fi
7364
7365
test -z "$pic_mode" && pic_mode=default
7366
7367
# Use C for the default configuration in the libtool script
7368
tagname=
7369
lt_save_CC="$CC"
7370
ac_ext=c
7371
ac_cpp='$CPP $CPPFLAGS'
7372
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376
7377
# Source file extension for C test sources.
7378
ac_ext=c
7379
7380
# Object file extension for compiled C test sources.
7381
objext=o
7382
objext=$objext
7383
7384
# Code to be used in simple compile tests
7385
lt_simple_compile_test_code="int some_variable = 0;"
7386
7387
# Code to be used in simple link tests
7388
lt_simple_link_test_code='int main(){return(0);}'
7389
7390
7391
# If no C compiler was specified, use CC.
7392
LTCC=${LTCC-"$CC"}
7393
7394
# If no C compiler flags were specified, use CFLAGS.
7395
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7396
7397
# Allow CC to be a program name with arguments.
7398
compiler=$CC
7399
7400
7401
# save warnings/boilerplate of simple test code
7402
ac_outfile=conftest.$ac_objext
7403
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7404
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7405
_lt_compiler_boilerplate=`cat conftest.err`
7406
$rm conftest*
7407
7408
ac_outfile=conftest.$ac_objext
7409
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7410
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7411
_lt_linker_boilerplate=`cat conftest.err`
7412
$rm -r conftest*
7413
7414
7415
7416
lt_prog_compiler_no_builtin_flag=
7417
7418
if test "$GCC" = yes; then
7419
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7420
7421
7422
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7423
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7424
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
7426
else
7427
  lt_cv_prog_compiler_rtti_exceptions=no
7428
  ac_outfile=conftest.$ac_objext
7429
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7430
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7431
   # Insert the option either (1) after the last *FLAGS variable, or
7432
   # (2) before a word containing "conftest.", or (3) at the end.
7433
   # Note that $ac_compile itself does not contain backslashes and begins
7434
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7435
   # The option is referenced via a variable to avoid confusing sed.
7436
   lt_compile=`echo "$ac_compile" | $SED \
7437
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7438
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7439
   -e 's:$: $lt_compiler_flag:'`
7440
   (eval echo "\"\$as_me:7440: $lt_compile\"" >&5)
7441
   (eval "$lt_compile" 2>conftest.err)
7442
   ac_status=$?
7443
   cat conftest.err >&5
7444
   echo "$as_me:7444: \$? = $ac_status" >&5
7445
   if (exit $ac_status) && test -s "$ac_outfile"; then
7446
     # The compiler can only warn and ignore the option if not recognized
7447
     # So say no if there are warnings other than the usual output.
7448
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7449
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7450
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7451
       lt_cv_prog_compiler_rtti_exceptions=yes
7452
     fi
7453
   fi
7454
   $rm conftest*
7455
7456
fi
7457
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7458
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7459
7460
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7461
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7462
else
7463
    :
7464
fi
7465
7466
fi
7467
7468
lt_prog_compiler_wl=
7469
lt_prog_compiler_pic=
7470
lt_prog_compiler_static=
7471
7472
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7473
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7474
7475
  if test "$GCC" = yes; then
7476
    lt_prog_compiler_wl='-Wl,'
7477
    lt_prog_compiler_static='-static'
7478
7479
    case $host_os in
7480
      aix*)
7481
      # All AIX code is PIC.
7482
      if test "$host_cpu" = ia64; then
7483
	# AIX 5 now supports IA64 processor
7484
	lt_prog_compiler_static='-Bstatic'
7485
      fi
7486
      ;;
7487
7488
    amigaos*)
7489
      # FIXME: we need at least 68020 code to build shared libraries, but
7490
      # adding the `-m68020' flag to GCC prevents building anything better,
7491
      # like `-m68040'.
7492
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7493
      ;;
7494
7495
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7496
      # PIC is the default for these OSes.
7497
      ;;
7498
7499
    mingw* | cygwin* | pw32* | os2*)
7500
      # This hack is so that the source file can tell whether it is being
7501
      # built for inclusion in a dll (and should export symbols for example).
7502
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7503
      # (--disable-auto-import) libraries
7504
      lt_prog_compiler_pic='-DDLL_EXPORT'
7505
      ;;
7506
7507
    darwin* | rhapsody*)
7508
      # PIC is the default on this platform
7509
      # Common symbols not allowed in MH_DYLIB files
7510
      lt_prog_compiler_pic='-fno-common'
7511
      ;;
7512
7513
    interix[3-9]*)
7514
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7515
      # Instead, we relocate shared libraries at runtime.
7516
      ;;
7517
7518
    msdosdjgpp*)
7519
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7520
      # on systems that don't support them.
7521
      lt_prog_compiler_can_build_shared=no
7522
      enable_shared=no
7523
      ;;
7524
7525
    sysv4*MP*)
7526
      if test -d /usr/nec; then
7527
	lt_prog_compiler_pic=-Kconform_pic
7528
      fi
7529
      ;;
7530
7531
    hpux*)
7532
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7533
      # not for PA HP-UX.
7534
      case $host_cpu in
7535
      hppa*64*|ia64*)
7536
	# +Z the default
7537
	;;
7538
      *)
7539
	lt_prog_compiler_pic='-fPIC'
7540
	;;
7541
      esac
7542
      ;;
7543
7544
    *)
7545
      lt_prog_compiler_pic='-fPIC'
7546
      ;;
7547
    esac
7548
  else
7549
    # PORTME Check for flag to pass linker flags through the system compiler.
7550
    case $host_os in
7551
    aix*)
7552
      lt_prog_compiler_wl='-Wl,'
7553
      if test "$host_cpu" = ia64; then
7554
	# AIX 5 now supports IA64 processor
7555
	lt_prog_compiler_static='-Bstatic'
7556
      else
7557
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7558
      fi
7559
      ;;
7560
      darwin*)
7561
        # PIC is the default on this platform
7562
        # Common symbols not allowed in MH_DYLIB files
7563
       case $cc_basename in
7564
         xlc*)
7565
         lt_prog_compiler_pic='-qnocommon'
7566
         lt_prog_compiler_wl='-Wl,'
7567
         ;;
7568
       esac
7569
       ;;
7570
7571
    mingw* | cygwin* | pw32* | os2*)
7572
      # This hack is so that the source file can tell whether it is being
7573
      # built for inclusion in a dll (and should export symbols for example).
7574
      lt_prog_compiler_pic='-DDLL_EXPORT'
7575
      ;;
7576
7577
    hpux9* | hpux10* | hpux11*)
7578
      lt_prog_compiler_wl='-Wl,'
7579
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7580
      # not for PA HP-UX.
7581
      case $host_cpu in
7582
      hppa*64*|ia64*)
7583
	# +Z the default
7584
	;;
7585
      *)
7586
	lt_prog_compiler_pic='+Z'
7587
	;;
7588
      esac
7589
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7590
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7591
      ;;
7592
7593
    irix5* | irix6* | nonstopux*)
7594
      lt_prog_compiler_wl='-Wl,'
7595
      # PIC (with -KPIC) is the default.
7596
      lt_prog_compiler_static='-non_shared'
7597
      ;;
7598
7599
    newsos6)
7600
      lt_prog_compiler_pic='-KPIC'
7601
      lt_prog_compiler_static='-Bstatic'
7602
      ;;
7603
7604
    linux* | k*bsd*-gnu)
7605
      case $cc_basename in
7606
      icc* | ecc*)
7607
	lt_prog_compiler_wl='-Wl,'
7608
	lt_prog_compiler_pic='-KPIC'
7609
	lt_prog_compiler_static='-static'
7610
        ;;
7611
      pgcc* | pgf77* | pgf90* | pgf95*)
7612
        # Portland Group compilers (*not* the Pentium gcc compiler,
7613
	# which looks to be a dead project)
7614
	lt_prog_compiler_wl='-Wl,'
7615
	lt_prog_compiler_pic='-fpic'
7616
	lt_prog_compiler_static='-Bstatic'
7617
        ;;
7618
      ccc*)
7619
        lt_prog_compiler_wl='-Wl,'
7620
        # All Alpha code is PIC.
7621
        lt_prog_compiler_static='-non_shared'
7622
        ;;
7623
      *)
7624
        case `$CC -V 2>&1 | sed 5q` in
7625
	*Sun\ C*)
7626
	  # Sun C 5.9
7627
	  lt_prog_compiler_pic='-KPIC'
7628
	  lt_prog_compiler_static='-Bstatic'
7629
	  lt_prog_compiler_wl='-Wl,'
7630
	  ;;
7631
	*Sun\ F*)
7632
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7633
	  lt_prog_compiler_pic='-KPIC'
7634
	  lt_prog_compiler_static='-Bstatic'
7635
	  lt_prog_compiler_wl=''
7636
	  ;;
7637
	esac
7638
	;;
7639
      esac
7640
      ;;
7641
7642
    osf3* | osf4* | osf5*)
7643
      lt_prog_compiler_wl='-Wl,'
7644
      # All OSF/1 code is PIC.
7645
      lt_prog_compiler_static='-non_shared'
7646
      ;;
7647
7648
    rdos*)
7649
      lt_prog_compiler_static='-non_shared'
7650
      ;;
7651
7652
    solaris*)
7653
      lt_prog_compiler_pic='-KPIC'
7654
      lt_prog_compiler_static='-Bstatic'
7655
      case $cc_basename in
7656
      f77* | f90* | f95*)
7657
	lt_prog_compiler_wl='-Qoption ld ';;
7658
      *)
7659
	lt_prog_compiler_wl='-Wl,';;
7660
      esac
7661
      ;;
7662
7663
    sunos4*)
7664
      lt_prog_compiler_wl='-Qoption ld '
7665
      lt_prog_compiler_pic='-PIC'
7666
      lt_prog_compiler_static='-Bstatic'
7667
      ;;
7668
7669
    sysv4 | sysv4.2uw2* | sysv4.3*)
7670
      lt_prog_compiler_wl='-Wl,'
7671
      lt_prog_compiler_pic='-KPIC'
7672
      lt_prog_compiler_static='-Bstatic'
7673
      ;;
7674
7675
    sysv4*MP*)
7676
      if test -d /usr/nec ;then
7677
	lt_prog_compiler_pic='-Kconform_pic'
7678
	lt_prog_compiler_static='-Bstatic'
7679
      fi
7680
      ;;
7681
7682
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7683
      lt_prog_compiler_wl='-Wl,'
7684
      lt_prog_compiler_pic='-KPIC'
7685
      lt_prog_compiler_static='-Bstatic'
7686
      ;;
7687
7688
    unicos*)
7689
      lt_prog_compiler_wl='-Wl,'
7690
      lt_prog_compiler_can_build_shared=no
7691
      ;;
7692
7693
    uts4*)
7694
      lt_prog_compiler_pic='-pic'
7695
      lt_prog_compiler_static='-Bstatic'
7696
      ;;
7697
7698
    *)
7699
      lt_prog_compiler_can_build_shared=no
7700
      ;;
7701
    esac
7702
  fi
7703
7704
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7705
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7706
7707
#
7708
# Check to make sure the PIC flag actually works.
7709
#
7710
if test -n "$lt_prog_compiler_pic"; then
7711
7712
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7713
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7714
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7715
  echo $ECHO_N "(cached) $ECHO_C" >&6
7716
else
7717
  lt_cv_prog_compiler_pic_works=no
7718
  ac_outfile=conftest.$ac_objext
7719
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7720
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7721
   # Insert the option either (1) after the last *FLAGS variable, or
7722
   # (2) before a word containing "conftest.", or (3) at the end.
7723
   # Note that $ac_compile itself does not contain backslashes and begins
7724
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7725
   # The option is referenced via a variable to avoid confusing sed.
7726
   lt_compile=`echo "$ac_compile" | $SED \
7727
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729
   -e 's:$: $lt_compiler_flag:'`
7730
   (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731
   (eval "$lt_compile" 2>conftest.err)
7732
   ac_status=$?
7733
   cat conftest.err >&5
7734
   echo "$as_me:7734: \$? = $ac_status" >&5
7735
   if (exit $ac_status) && test -s "$ac_outfile"; then
7736
     # The compiler can only warn and ignore the option if not recognized
7737
     # So say no if there are warnings other than the usual output.
7738
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7739
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7740
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7741
       lt_cv_prog_compiler_pic_works=yes
7742
     fi
7743
   fi
7744
   $rm conftest*
7745
7746
fi
7747
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7748
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7749
7750
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7751
    case $lt_prog_compiler_pic in
7752
     "" | " "*) ;;
7753
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7754
     esac
7755
else
7756
    lt_prog_compiler_pic=
7757
     lt_prog_compiler_can_build_shared=no
7758
fi
7759
7760
fi
7761
case $host_os in
7762
  # For platforms which do not support PIC, -DPIC is meaningless:
7763
  *djgpp*)
7764
    lt_prog_compiler_pic=
7765
    ;;
7766
  *)
7767
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7768
    ;;
7769
esac
7770
7771
#
7772
# Check to make sure the static flag actually works.
7773
#
7774
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7775
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7776
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7777
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7778
  echo $ECHO_N "(cached) $ECHO_C" >&6
7779
else
7780
  lt_cv_prog_compiler_static_works=no
7781
   save_LDFLAGS="$LDFLAGS"
7782
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7783
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7784
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7785
     # The linker can only warn and ignore the option if not recognized
7786
     # So say no if there are warnings
7787
     if test -s conftest.err; then
7788
       # Append any errors to the config.log.
7789
       cat conftest.err 1>&5
7790
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7791
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792
       if diff conftest.exp conftest.er2 >/dev/null; then
7793
         lt_cv_prog_compiler_static_works=yes
7794
       fi
7795
     else
7796
       lt_cv_prog_compiler_static_works=yes
7797
     fi
7798
   fi
7799
   $rm -r conftest*
7800
   LDFLAGS="$save_LDFLAGS"
7801
7802
fi
7803
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7804
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7805
7806
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7807
    :
7808
else
7809
    lt_prog_compiler_static=
7810
fi
7811
7812
7813
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7814
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7815
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7816
  echo $ECHO_N "(cached) $ECHO_C" >&6
7817
else
7818
  lt_cv_prog_compiler_c_o=no
7819
   $rm -r conftest 2>/dev/null
7820
   mkdir conftest
7821
   cd conftest
7822
   mkdir out
7823
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7824
7825
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7826
   # Insert the option either (1) after the last *FLAGS variable, or
7827
   # (2) before a word containing "conftest.", or (3) at the end.
7828
   # Note that $ac_compile itself does not contain backslashes and begins
7829
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7830
   lt_compile=`echo "$ac_compile" | $SED \
7831
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7832
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7833
   -e 's:$: $lt_compiler_flag:'`
7834
   (eval echo "\"\$as_me:7834: $lt_compile\"" >&5)
7835
   (eval "$lt_compile" 2>out/conftest.err)
7836
   ac_status=$?
7837
   cat out/conftest.err >&5
7838
   echo "$as_me:7838: \$? = $ac_status" >&5
7839
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7840
   then
7841
     # The compiler can only warn and ignore the option if not recognized
7842
     # So say no if there are warnings
7843
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7844
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7845
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7846
       lt_cv_prog_compiler_c_o=yes
7847
     fi
7848
   fi
7849
   chmod u+w . 2>&5
7850
   $rm conftest*
7851
   # SGI C++ compiler will create directory out/ii_files/ for
7852
   # template instantiation
7853
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7854
   $rm out/* && rmdir out
7855
   cd ..
7856
   rmdir conftest
7857
   $rm conftest*
7858
7859
fi
7860
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7861
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7862
7863
7864
hard_links="nottested"
7865
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7866
  # do not overwrite the value of need_locks provided by the user
7867
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7868
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7869
  hard_links=yes
7870
  $rm conftest*
7871
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7872
  touch conftest.a
7873
  ln conftest.a conftest.b 2>&5 || hard_links=no
7874
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7875
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7876
echo "${ECHO_T}$hard_links" >&6; }
7877
  if test "$hard_links" = no; then
7878
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7879
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7880
    need_locks=warn
7881
  fi
7882
else
7883
  need_locks=no
7884
fi
7885
7886
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7887
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7888
7889
  runpath_var=
7890
  allow_undefined_flag=
7891
  enable_shared_with_static_runtimes=no
7892
  archive_cmds=
7893
  archive_expsym_cmds=
7894
  old_archive_From_new_cmds=
7895
  old_archive_from_expsyms_cmds=
7896
  export_dynamic_flag_spec=
7897
  whole_archive_flag_spec=
7898
  thread_safe_flag_spec=
7899
  hardcode_libdir_flag_spec=
7900
  hardcode_libdir_flag_spec_ld=
7901
  hardcode_libdir_separator=
7902
  hardcode_direct=no
7903
  hardcode_minus_L=no
7904
  hardcode_shlibpath_var=unsupported
7905
  link_all_deplibs=unknown
7906
  hardcode_automatic=no
7907
  module_cmds=
7908
  module_expsym_cmds=
7909
  always_export_symbols=no
7910
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7911
  # include_expsyms should be a list of space-separated symbols to be *always*
7912
  # included in the symbol list
7913
  include_expsyms=
7914
  # exclude_expsyms can be an extended regexp of symbols to exclude
7915
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7916
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7917
  # as well as any symbol that contains `d'.
7918
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7919
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7920
  # platforms (ab)use it in PIC code, but their linkers get confused if
7921
  # the symbol is explicitly referenced.  Since portable code cannot
7922
  # rely on this symbol name, it's probably fine to never include it in
7923
  # preloaded symbol tables.
7924
  # Exclude shared library initialization/finalization symbols.
7925
  extract_expsyms_cmds=
7926
  # Just being paranoid about ensuring that cc_basename is set.
7927
  for cc_temp in $compiler""; do
7928
  case $cc_temp in
7929
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7931
    \-*) ;;
7932
    *) break;;
7933
  esac
7934
done
7935
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7936
7937
  case $host_os in
7938
  cygwin* | mingw* | pw32*)
7939
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7940
    # When not using gcc, we currently assume that we are using
7941
    # Microsoft Visual C++.
7942
    if test "$GCC" != yes; then
7943
      with_gnu_ld=no
7944
    fi
7945
    ;;
7946
  interix*)
7947
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7948
    with_gnu_ld=yes
7949
    ;;
7950
  openbsd*)
7951
    with_gnu_ld=no
7952
    ;;
7953
  esac
7954
7955
  ld_shlibs=yes
7956
  if test "$with_gnu_ld" = yes; then
7957
    # If archive_cmds runs LD, not CC, wlarc should be empty
7958
    wlarc='${wl}'
7959
7960
    # Set some defaults for GNU ld with shared library support. These
7961
    # are reset later if shared libraries are not supported. Putting them
7962
    # here allows them to be overridden if necessary.
7963
    runpath_var=LD_RUN_PATH
7964
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7965
    export_dynamic_flag_spec='${wl}--export-dynamic'
7966
    # ancient GNU ld didn't support --whole-archive et. al.
7967
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7968
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7969
      else
7970
  	whole_archive_flag_spec=
7971
    fi
7972
    supports_anon_versioning=no
7973
    case `$LD -v 2>/dev/null` in
7974
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7975
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7976
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7977
      *\ 2.11.*) ;; # other 2.11 versions
7978
      *) supports_anon_versioning=yes ;;
7979
    esac
7980
7981
    # See if GNU ld supports shared libraries.
7982
    case $host_os in
7983
    aix[3-9]*)
7984
      # On AIX/PPC, the GNU linker is very broken
7985
      if test "$host_cpu" != ia64; then
7986
	ld_shlibs=no
7987
	cat <<EOF 1>&2
7988
7989
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7990
*** to be unable to reliably create shared libraries on AIX.
7991
*** Therefore, libtool is disabling shared libraries support.  If you
7992
*** really care for shared libraries, you may want to modify your PATH
7993
*** so that a non-GNU linker is found, and then restart.
7994
7995
EOF
7996
      fi
7997
      ;;
7998
7999
    amigaos*)
8000
      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)'
8001
      hardcode_libdir_flag_spec='-L$libdir'
8002
      hardcode_minus_L=yes
8003
8004
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8005
      # that the semantics of dynamic libraries on AmigaOS, at least up
8006
      # to version 4, is to share data among multiple programs linked
8007
      # with the same dynamic library.  Since this doesn't match the
8008
      # behavior of shared libraries on other platforms, we can't use
8009
      # them.
8010
      ld_shlibs=no
8011
      ;;
8012
8013
    beos*)
8014
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015
	allow_undefined_flag=unsupported
8016
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8017
	# support --undefined.  This deserves some investigation.  FIXME
8018
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019
      else
8020
	ld_shlibs=no
8021
      fi
8022
      ;;
8023
8024
    cygwin* | mingw* | pw32*)
8025
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8026
      # as there is no search path for DLLs.
8027
      hardcode_libdir_flag_spec='-L$libdir'
8028
      allow_undefined_flag=unsupported
8029
      always_export_symbols=no
8030
      enable_shared_with_static_runtimes=yes
8031
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8032
8033
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8034
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035
	# If the export-symbols file already is a .def file (1st line
8036
	# is EXPORTS), use it as is; otherwise, prepend...
8037
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8038
	  cp $export_symbols $output_objdir/$soname.def;
8039
	else
8040
	  echo EXPORTS > $output_objdir/$soname.def;
8041
	  cat $export_symbols >> $output_objdir/$soname.def;
8042
	fi~
8043
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8044
      else
8045
	ld_shlibs=no
8046
      fi
8047
      ;;
8048
8049
    interix[3-9]*)
8050
      hardcode_direct=no
8051
      hardcode_shlibpath_var=no
8052
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8053
      export_dynamic_flag_spec='${wl}-E'
8054
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8055
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8056
      # default) and relocated if they conflict, which is a slow very memory
8057
      # consuming and fragmenting process.  To avoid this, we pick a random,
8058
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8059
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8060
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8061
      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'
8062
      ;;
8063
8064
    gnu* | linux* | k*bsd*-gnu)
8065
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8066
	tmp_addflag=
8067
	case $cc_basename,$host_cpu in
8068
	pgcc*)				# Portland Group C compiler
8069
	  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'
8070
	  tmp_addflag=' $pic_flag'
8071
	  ;;
8072
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8073
	  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'
8074
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8075
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8076
	  tmp_addflag=' -i_dynamic' ;;
8077
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8078
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8079
	ifc* | ifort*)			# Intel Fortran compiler
8080
	  tmp_addflag=' -nofor_main' ;;
8081
	esac
8082
	case `$CC -V 2>&1 | sed 5q` in
8083
	*Sun\ C*)			# Sun C 5.9
8084
	  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'
8085
	  tmp_sharedflag='-G' ;;
8086
	*Sun\ F*)			# Sun Fortran 8.3
8087
	  tmp_sharedflag='-G' ;;
8088
	*)
8089
	  tmp_sharedflag='-shared' ;;
8090
	esac
8091
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092
8093
	if test $supports_anon_versioning = yes; then
8094
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8095
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8096
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8097
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8098
	fi
8099
	link_all_deplibs=no
8100
      else
8101
	ld_shlibs=no
8102
      fi
8103
      ;;
8104
8105
    netbsd* | netbsdelf*-gnu)
8106
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8107
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8108
	wlarc=
8109
      else
8110
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8112
      fi
8113
      ;;
8114
8115
    solaris*)
8116
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8117
	ld_shlibs=no
8118
	cat <<EOF 1>&2
8119
8120
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8121
*** create shared libraries on Solaris systems.  Therefore, libtool
8122
*** is disabling shared libraries support.  We urge you to upgrade GNU
8123
*** binutils to release 2.9.1 or newer.  Another option is to modify
8124
*** your PATH or compiler configuration so that the native linker is
8125
*** used, and then restart.
8126
8127
EOF
8128
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8129
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131
      else
8132
	ld_shlibs=no
8133
      fi
8134
      ;;
8135
8136
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8137
      case `$LD -v 2>&1` in
8138
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8139
	ld_shlibs=no
8140
	cat <<_LT_EOF 1>&2
8141
8142
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8143
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8144
*** is disabling shared libraries support.  We urge you to upgrade GNU
8145
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8146
*** your PATH or compiler configuration so that the native linker is
8147
*** used, and then restart.
8148
8149
_LT_EOF
8150
	;;
8151
	*)
8152
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8154
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8155
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8156
	  else
8157
	    ld_shlibs=no
8158
	  fi
8159
	;;
8160
      esac
8161
      ;;
8162
8163
    sunos4*)
8164
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8165
      wlarc=
8166
      hardcode_direct=yes
8167
      hardcode_shlibpath_var=no
8168
      ;;
8169
8170
    *)
8171
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8172
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8174
      else
8175
	ld_shlibs=no
8176
      fi
8177
      ;;
8178
    esac
8179
8180
    if test "$ld_shlibs" = no; then
8181
      runpath_var=
8182
      hardcode_libdir_flag_spec=
8183
      export_dynamic_flag_spec=
8184
      whole_archive_flag_spec=
8185
    fi
8186
  else
8187
    # PORTME fill in a description of your system's linker (not GNU ld)
8188
    case $host_os in
8189
    aix3*)
8190
      allow_undefined_flag=unsupported
8191
      always_export_symbols=yes
8192
      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'
8193
      # Note: this linker hardcodes the directories in LIBPATH if there
8194
      # are no directories specified by -L.
8195
      hardcode_minus_L=yes
8196
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8197
	# Neither direct hardcoding nor static linking is supported with a
8198
	# broken collect2.
8199
	hardcode_direct=unsupported
8200
      fi
8201
      ;;
8202
8203
    aix[4-9]*)
8204
      if test "$host_cpu" = ia64; then
8205
	# On IA64, the linker does run time linking by default, so we don't
8206
	# have to do anything special.
8207
	aix_use_runtimelinking=no
8208
	exp_sym_flag='-Bexport'
8209
	no_entry_flag=""
8210
      else
8211
	# If we're using GNU nm, then we don't want the "-C" option.
8212
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8213
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8214
	  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'
8215
	else
8216
	  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'
8217
	fi
8218
	aix_use_runtimelinking=no
8219
8220
	# Test if we are trying to use run time linking or normal
8221
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8222
	# need to do runtime linking.
8223
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8224
	  for ld_flag in $LDFLAGS; do
8225
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8226
  	    aix_use_runtimelinking=yes
8227
  	    break
8228
  	  fi
8229
	  done
8230
	  ;;
8231
	esac
8232
8233
	exp_sym_flag='-bexport'
8234
	no_entry_flag='-bnoentry'
8235
      fi
8236
8237
      # When large executables or shared objects are built, AIX ld can
8238
      # have problems creating the table of contents.  If linking a library
8239
      # or program results in "error TOC overflow" add -mminimal-toc to
8240
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8241
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8242
8243
      archive_cmds=''
8244
      hardcode_direct=yes
8245
      hardcode_libdir_separator=':'
8246
      link_all_deplibs=yes
8247
8248
      if test "$GCC" = yes; then
8249
	case $host_os in aix4.[012]|aix4.[012].*)
8250
	# We only want to do this on AIX 4.2 and lower, the check
8251
	# below for broken collect2 doesn't work under 4.3+
8252
	  collect2name=`${CC} -print-prog-name=collect2`
8253
	  if test -f "$collect2name" && \
8254
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8255
	  then
8256
  	  # We have reworked collect2
8257
  	  :
8258
	  else
8259
  	  # We have old collect2
8260
  	  hardcode_direct=unsupported
8261
  	  # It fails to find uninstalled libraries when the uninstalled
8262
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8263
  	  # to unsupported forces relinking
8264
  	  hardcode_minus_L=yes
8265
  	  hardcode_libdir_flag_spec='-L$libdir'
8266
  	  hardcode_libdir_separator=
8267
	  fi
8268
	  ;;
8269
	esac
8270
	shared_flag='-shared'
8271
	if test "$aix_use_runtimelinking" = yes; then
8272
	  shared_flag="$shared_flag "'${wl}-G'
8273
	fi
8274
      else
8275
	# not using gcc
8276
	if test "$host_cpu" = ia64; then
8277
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8278
  	# chokes on -Wl,-G. The following line is correct:
8279
	  shared_flag='-G'
8280
	else
8281
	  if test "$aix_use_runtimelinking" = yes; then
8282
	    shared_flag='${wl}-G'
8283
	  else
8284
	    shared_flag='${wl}-bM:SRE'
8285
	  fi
8286
	fi
8287
      fi
8288
8289
      # It seems that -bexpall does not export symbols beginning with
8290
      # underscore (_), so it is better to generate a list of symbols to export.
8291
      always_export_symbols=yes
8292
      if test "$aix_use_runtimelinking" = yes; then
8293
	# Warning - without using the other runtime loading flags (-brtl),
8294
	# -berok will link without error, but may produce a broken library.
8295
	allow_undefined_flag='-berok'
8296
       # Determine the default libpath from the value encoded in an empty executable.
8297
       cat >conftest.$ac_ext <<_ACEOF
8298
/* confdefs.h.  */
8299
_ACEOF
8300
cat confdefs.h >>conftest.$ac_ext
8301
cat >>conftest.$ac_ext <<_ACEOF
8302
/* end confdefs.h.  */
8303
8304
int
8305
main ()
8306
{
8307
8308
  ;
8309
  return 0;
8310
}
8311
_ACEOF
8312
rm -f conftest.$ac_objext conftest$ac_exeext
8313
if { (ac_try="$ac_link"
8314
case "(($ac_try" in
8315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316
  *) ac_try_echo=$ac_try;;
8317
esac
8318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319
  (eval "$ac_link") 2>conftest.er1
8320
  ac_status=$?
8321
  grep -v '^ *+' conftest.er1 >conftest.err
8322
  rm -f conftest.er1
8323
  cat conftest.err >&5
8324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
  (exit $ac_status); } && {
8326
	 test -z "$ac_c_werror_flag" ||
8327
	 test ! -s conftest.err
8328
       } && test -s conftest$ac_exeext &&
8329
       $as_test_x conftest$ac_exeext; then
8330
8331
lt_aix_libpath_sed='
8332
    /Import File Strings/,/^$/ {
8333
	/^0/ {
8334
	    s/^0  *\(.*\)$/\1/
8335
	    p
8336
	}
8337
    }'
8338
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8339
# Check for a 64-bit object if we didn't find anything.
8340
if test -z "$aix_libpath"; then
8341
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8342
fi
8343
else
8344
  echo "$as_me: failed program was:" >&5
8345
sed 's/^/| /' conftest.$ac_ext >&5
8346
8347
8348
fi
8349
8350
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8351
      conftest$ac_exeext conftest.$ac_ext
8352
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353
8354
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8355
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8356
       else
8357
	if test "$host_cpu" = ia64; then
8358
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8359
	  allow_undefined_flag="-z nodefs"
8360
	  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"
8361
	else
8362
	 # Determine the default libpath from the value encoded in an empty executable.
8363
	 cat >conftest.$ac_ext <<_ACEOF
8364
/* confdefs.h.  */
8365
_ACEOF
8366
cat confdefs.h >>conftest.$ac_ext
8367
cat >>conftest.$ac_ext <<_ACEOF
8368
/* end confdefs.h.  */
8369
8370
int
8371
main ()
8372
{
8373
8374
  ;
8375
  return 0;
8376
}
8377
_ACEOF
8378
rm -f conftest.$ac_objext conftest$ac_exeext
8379
if { (ac_try="$ac_link"
8380
case "(($ac_try" in
8381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382
  *) ac_try_echo=$ac_try;;
8383
esac
8384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385
  (eval "$ac_link") 2>conftest.er1
8386
  ac_status=$?
8387
  grep -v '^ *+' conftest.er1 >conftest.err
8388
  rm -f conftest.er1
8389
  cat conftest.err >&5
8390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391
  (exit $ac_status); } && {
8392
	 test -z "$ac_c_werror_flag" ||
8393
	 test ! -s conftest.err
8394
       } && test -s conftest$ac_exeext &&
8395
       $as_test_x conftest$ac_exeext; then
8396
8397
lt_aix_libpath_sed='
8398
    /Import File Strings/,/^$/ {
8399
	/^0/ {
8400
	    s/^0  *\(.*\)$/\1/
8401
	    p
8402
	}
8403
    }'
8404
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8405
# Check for a 64-bit object if we didn't find anything.
8406
if test -z "$aix_libpath"; then
8407
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8408
fi
8409
else
8410
  echo "$as_me: failed program was:" >&5
8411
sed 's/^/| /' conftest.$ac_ext >&5
8412
8413
8414
fi
8415
8416
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417
      conftest$ac_exeext conftest.$ac_ext
8418
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419
8420
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8421
	  # Warning - without using the other run time loading flags,
8422
	  # -berok will link without error, but may produce a broken library.
8423
	  no_undefined_flag=' ${wl}-bernotok'
8424
	  allow_undefined_flag=' ${wl}-berok'
8425
	  # Exported symbols can be pulled into shared objects from archives
8426
	  whole_archive_flag_spec='$convenience'
8427
	  archive_cmds_need_lc=yes
8428
	  # This is similar to how AIX traditionally builds its shared libraries.
8429
	  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'
8430
	fi
8431
      fi
8432
      ;;
8433
8434
    amigaos*)
8435
      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)'
8436
      hardcode_libdir_flag_spec='-L$libdir'
8437
      hardcode_minus_L=yes
8438
      # see comment about different semantics on the GNU ld section
8439
      ld_shlibs=no
8440
      ;;
8441
8442
    bsdi[45]*)
8443
      export_dynamic_flag_spec=-rdynamic
8444
      ;;
8445
8446
    cygwin* | mingw* | pw32*)
8447
      # When not using gcc, we currently assume that we are using
8448
      # Microsoft Visual C++.
8449
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8450
      # no search path for DLLs.
8451
      hardcode_libdir_flag_spec=' '
8452
      allow_undefined_flag=unsupported
8453
      # Tell ltmain to make .lib files, not .a files.
8454
      libext=lib
8455
      # Tell ltmain to make .dll files, not .so files.
8456
      shrext_cmds=".dll"
8457
      # FIXME: Setting linknames here is a bad hack.
8458
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8459
      # The linker will automatically build a .lib file if we build a DLL.
8460
      old_archive_From_new_cmds='true'
8461
      # FIXME: Should let the user specify the lib program.
8462
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8463
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8464
      enable_shared_with_static_runtimes=yes
8465
      ;;
8466
8467
    darwin* | rhapsody*)
8468
      case $host_os in
8469
        rhapsody* | darwin1.[012])
8470
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8471
         ;;
8472
       *) # Darwin 1.3 on
8473
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8474
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8475
         else
8476
           case ${MACOSX_DEPLOYMENT_TARGET} in
8477
             10.[012])
8478
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8479
               ;;
8480
             10.*)
8481
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8482
               ;;
8483
           esac
8484
         fi
8485
         ;;
8486
      esac
8487
      archive_cmds_need_lc=no
8488
      hardcode_direct=no
8489
      hardcode_automatic=yes
8490
      hardcode_shlibpath_var=unsupported
8491
      whole_archive_flag_spec=''
8492
      link_all_deplibs=yes
8493
    if test "$GCC" = yes ; then
8494
    	output_verbose_link_cmd='echo'
8495
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8496
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8497
        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}"
8498
        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}"
8499
    else
8500
      case $cc_basename in
8501
        xlc*)
8502
         output_verbose_link_cmd='echo'
8503
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8504
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8505
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8506
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8507
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8508
          ;;
8509
       *)
8510
         ld_shlibs=no
8511
          ;;
8512
      esac
8513
    fi
8514
      ;;
8515
8516
    dgux*)
8517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518
      hardcode_libdir_flag_spec='-L$libdir'
8519
      hardcode_shlibpath_var=no
8520
      ;;
8521
8522
    freebsd1*)
8523
      ld_shlibs=no
8524
      ;;
8525
8526
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8527
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8528
    # does not break anything, and helps significantly (at the cost of a little
8529
    # extra space).
8530
    freebsd2.2*)
8531
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8532
      hardcode_libdir_flag_spec='-R$libdir'
8533
      hardcode_direct=yes
8534
      hardcode_shlibpath_var=no
8535
      ;;
8536
8537
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8538
    freebsd2*)
8539
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540
      hardcode_direct=yes
8541
      hardcode_minus_L=yes
8542
      hardcode_shlibpath_var=no
8543
      ;;
8544
8545
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8546
    freebsd* | dragonfly*)
8547
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8548
      hardcode_libdir_flag_spec='-R$libdir'
8549
      hardcode_direct=yes
8550
      hardcode_shlibpath_var=no
8551
      ;;
8552
8553
    hpux9*)
8554
      if test "$GCC" = yes; then
8555
	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'
8556
      else
8557
	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'
8558
      fi
8559
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8560
      hardcode_libdir_separator=:
8561
      hardcode_direct=yes
8562
8563
      # hardcode_minus_L: Not really in the search PATH,
8564
      # but as the default location of the library.
8565
      hardcode_minus_L=yes
8566
      export_dynamic_flag_spec='${wl}-E'
8567
      ;;
8568
8569
    hpux10*)
8570
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8571
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572
      else
8573
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8574
      fi
8575
      if test "$with_gnu_ld" = no; then
8576
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577
	hardcode_libdir_separator=:
8578
8579
	hardcode_direct=yes
8580
	export_dynamic_flag_spec='${wl}-E'
8581
8582
	# hardcode_minus_L: Not really in the search PATH,
8583
	# but as the default location of the library.
8584
	hardcode_minus_L=yes
8585
      fi
8586
      ;;
8587
8588
    hpux11*)
8589
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8590
	case $host_cpu in
8591
	hppa*64*)
8592
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593
	  ;;
8594
	ia64*)
8595
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8596
	  ;;
8597
	*)
8598
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599
	  ;;
8600
	esac
8601
      else
8602
	case $host_cpu in
8603
	hppa*64*)
8604
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8605
	  ;;
8606
	ia64*)
8607
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8608
	  ;;
8609
	*)
8610
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8611
	  ;;
8612
	esac
8613
      fi
8614
      if test "$with_gnu_ld" = no; then
8615
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616
	hardcode_libdir_separator=:
8617
8618
	case $host_cpu in
8619
	hppa*64*|ia64*)
8620
	  hardcode_libdir_flag_spec_ld='+b $libdir'
8621
	  hardcode_direct=no
8622
	  hardcode_shlibpath_var=no
8623
	  ;;
8624
	*)
8625
	  hardcode_direct=yes
8626
	  export_dynamic_flag_spec='${wl}-E'
8627
8628
	  # hardcode_minus_L: Not really in the search PATH,
8629
	  # but as the default location of the library.
8630
	  hardcode_minus_L=yes
8631
	  ;;
8632
	esac
8633
      fi
8634
      ;;
8635
8636
    irix5* | irix6* | nonstopux*)
8637
      if test "$GCC" = yes; then
8638
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8639
      else
8640
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8641
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8642
      fi
8643
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644
      hardcode_libdir_separator=:
8645
      link_all_deplibs=yes
8646
      ;;
8647
8648
    netbsd* | netbsdelf*-gnu)
8649
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8650
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8651
      else
8652
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8653
      fi
8654
      hardcode_libdir_flag_spec='-R$libdir'
8655
      hardcode_direct=yes
8656
      hardcode_shlibpath_var=no
8657
      ;;
8658
8659
    newsos6)
8660
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661
      hardcode_direct=yes
8662
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663
      hardcode_libdir_separator=:
8664
      hardcode_shlibpath_var=no
8665
      ;;
8666
8667
    openbsd*)
8668
      if test -f /usr/libexec/ld.so; then
8669
	hardcode_direct=yes
8670
	hardcode_shlibpath_var=no
8671
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8672
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8673
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8674
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675
	  export_dynamic_flag_spec='${wl}-E'
8676
	else
8677
	  case $host_os in
8678
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8679
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8680
	     hardcode_libdir_flag_spec='-R$libdir'
8681
	     ;;
8682
	   *)
8683
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8684
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685
	     ;;
8686
	  esac
8687
        fi
8688
      else
8689
	ld_shlibs=no
8690
      fi
8691
      ;;
8692
8693
    os2*)
8694
      hardcode_libdir_flag_spec='-L$libdir'
8695
      hardcode_minus_L=yes
8696
      allow_undefined_flag=unsupported
8697
      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'
8698
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8699
      ;;
8700
8701
    osf3*)
8702
      if test "$GCC" = yes; then
8703
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8704
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8705
      else
8706
	allow_undefined_flag=' -expect_unresolved \*'
8707
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8708
      fi
8709
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710
      hardcode_libdir_separator=:
8711
      ;;
8712
8713
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8714
      if test "$GCC" = yes; then
8715
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8716
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8717
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718
      else
8719
	allow_undefined_flag=' -expect_unresolved \*'
8720
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8721
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8722
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8723
8724
	# Both c and cxx compiler support -rpath directly
8725
	hardcode_libdir_flag_spec='-rpath $libdir'
8726
      fi
8727
      hardcode_libdir_separator=:
8728
      ;;
8729
8730
    solaris*)
8731
      no_undefined_flag=' -z text'
8732
      if test "$GCC" = yes; then
8733
	wlarc='${wl}'
8734
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8737
      else
8738
	wlarc=''
8739
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8741
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8742
      fi
8743
      hardcode_libdir_flag_spec='-R$libdir'
8744
      hardcode_shlibpath_var=no
8745
      case $host_os in
8746
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8747
      *)
8748
	# The compiler driver will combine and reorder linker options,
8749
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8750
	# but is careful enough not to reorder.
8751
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8752
	if test "$GCC" = yes; then
8753
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8754
	else
8755
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8756
	fi
8757
	;;
8758
      esac
8759
      link_all_deplibs=yes
8760
      ;;
8761
8762
    sunos4*)
8763
      if test "x$host_vendor" = xsequent; then
8764
	# Use $CC to link under sequent, because it throws in some extra .o
8765
	# files that make .init and .fini sections work.
8766
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8767
      else
8768
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8769
      fi
8770
      hardcode_libdir_flag_spec='-L$libdir'
8771
      hardcode_direct=yes
8772
      hardcode_minus_L=yes
8773
      hardcode_shlibpath_var=no
8774
      ;;
8775
8776
    sysv4)
8777
      case $host_vendor in
8778
	sni)
8779
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780
	  hardcode_direct=yes # is this really true???
8781
	;;
8782
	siemens)
8783
	  ## LD is ld it makes a PLAMLIB
8784
	  ## CC just makes a GrossModule.
8785
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8786
	  reload_cmds='$CC -r -o $output$reload_objs'
8787
	  hardcode_direct=no
8788
        ;;
8789
	motorola)
8790
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8792
	;;
8793
      esac
8794
      runpath_var='LD_RUN_PATH'
8795
      hardcode_shlibpath_var=no
8796
      ;;
8797
8798
    sysv4.3*)
8799
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800
      hardcode_shlibpath_var=no
8801
      export_dynamic_flag_spec='-Bexport'
8802
      ;;
8803
8804
    sysv4*MP*)
8805
      if test -d /usr/nec; then
8806
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807
	hardcode_shlibpath_var=no
8808
	runpath_var=LD_RUN_PATH
8809
	hardcode_runpath_var=yes
8810
	ld_shlibs=yes
8811
      fi
8812
      ;;
8813
8814
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8815
      no_undefined_flag='${wl}-z,text'
8816
      archive_cmds_need_lc=no
8817
      hardcode_shlibpath_var=no
8818
      runpath_var='LD_RUN_PATH'
8819
8820
      if test "$GCC" = yes; then
8821
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823
      else
8824
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826
      fi
8827
      ;;
8828
8829
    sysv5* | sco3.2v5* | sco5v6*)
8830
      # Note: We can NOT use -z defs as we might desire, because we do not
8831
      # link with -lc, and that would cause any symbols used from libc to
8832
      # always be unresolved, which means just about no library would
8833
      # ever link correctly.  If we're not using GNU ld we use -z text
8834
      # though, which does catch some bad symbols but isn't as heavy-handed
8835
      # as -z defs.
8836
      no_undefined_flag='${wl}-z,text'
8837
      allow_undefined_flag='${wl}-z,nodefs'
8838
      archive_cmds_need_lc=no
8839
      hardcode_shlibpath_var=no
8840
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8841
      hardcode_libdir_separator=':'
8842
      link_all_deplibs=yes
8843
      export_dynamic_flag_spec='${wl}-Bexport'
8844
      runpath_var='LD_RUN_PATH'
8845
8846
      if test "$GCC" = yes; then
8847
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849
      else
8850
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852
      fi
8853
      ;;
8854
8855
    uts4*)
8856
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857
      hardcode_libdir_flag_spec='-L$libdir'
8858
      hardcode_shlibpath_var=no
8859
      ;;
8860
8861
    *)
8862
      ld_shlibs=no
8863
      ;;
8864
    esac
8865
  fi
8866
8867
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8868
echo "${ECHO_T}$ld_shlibs" >&6; }
8869
test "$ld_shlibs" = no && can_build_shared=no
8870
8871
#
8872
# Do we need to explicitly link libc?
8873
#
8874
case "x$archive_cmds_need_lc" in
8875
x|xyes)
8876
  # Assume -lc should be added
8877
  archive_cmds_need_lc=yes
8878
8879
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8880
    case $archive_cmds in
8881
    *'~'*)
8882
      # FIXME: we may have to deal with multi-command sequences.
8883
      ;;
8884
    '$CC '*)
8885
      # Test whether the compiler implicitly links with -lc since on some
8886
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8887
      # to ld, don't add -lc before -lgcc.
8888
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8889
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8890
      $rm conftest*
8891
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892
8893
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894
  (eval $ac_compile) 2>&5
8895
  ac_status=$?
8896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897
  (exit $ac_status); } 2>conftest.err; then
8898
        soname=conftest
8899
        lib=conftest
8900
        libobjs=conftest.$ac_objext
8901
        deplibs=
8902
        wl=$lt_prog_compiler_wl
8903
	pic_flag=$lt_prog_compiler_pic
8904
        compiler_flags=-v
8905
        linker_flags=-v
8906
        verstring=
8907
        output_objdir=.
8908
        libname=conftest
8909
        lt_save_allow_undefined_flag=$allow_undefined_flag
8910
        allow_undefined_flag=
8911
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8912
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8913
  ac_status=$?
8914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915
  (exit $ac_status); }
8916
        then
8917
	  archive_cmds_need_lc=no
8918
        else
8919
	  archive_cmds_need_lc=yes
8920
        fi
8921
        allow_undefined_flag=$lt_save_allow_undefined_flag
8922
      else
8923
        cat conftest.err 1>&5
8924
      fi
8925
      $rm conftest*
8926
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8927
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8928
      ;;
8929
    esac
8930
  fi
8931
  ;;
8932
esac
8933
8934
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8935
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8936
library_names_spec=
8937
libname_spec='lib$name'
8938
soname_spec=
8939
shrext_cmds=".so"
8940
postinstall_cmds=
8941
postuninstall_cmds=
8942
finish_cmds=
8943
finish_eval=
8944
shlibpath_var=
8945
shlibpath_overrides_runpath=unknown
8946
version_type=none
8947
dynamic_linker="$host_os ld.so"
8948
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8949
8950
if test "$GCC" = yes; then
8951
  case $host_os in
8952
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8953
    *) lt_awk_arg="/^libraries:/" ;;
8954
  esac
8955
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8957
    # if the path contains ";" then we assume it to be the separator
8958
    # otherwise default to the standard path separator (i.e. ":") - it is
8959
    # assumed that no part of a normal pathname contains ";" but that should
8960
    # okay in the real world where ";" in dirpaths is itself problematic.
8961
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8962
  else
8963
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8964
  fi
8965
  # Ok, now we have the path, separated by spaces, we can step through it
8966
  # and add multilib dir if necessary.
8967
  lt_tmp_lt_search_path_spec=
8968
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8969
  for lt_sys_path in $lt_search_path_spec; do
8970
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8971
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8972
    else
8973
      test -d "$lt_sys_path" && \
8974
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8975
    fi
8976
  done
8977
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8978
BEGIN {RS=" "; FS="/|\n";} {
8979
  lt_foo="";
8980
  lt_count=0;
8981
  for (lt_i = NF; lt_i > 0; lt_i--) {
8982
    if ($lt_i != "" && $lt_i != ".") {
8983
      if ($lt_i == "..") {
8984
        lt_count++;
8985
      } else {
8986
        if (lt_count == 0) {
8987
          lt_foo="/" $lt_i lt_foo;
8988
        } else {
8989
          lt_count--;
8990
        }
8991
      }
8992
    }
8993
  }
8994
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8995
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8996
}'`
8997
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8998
else
8999
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9000
fi
9001
need_lib_prefix=unknown
9002
hardcode_into_libs=no
9003
9004
# when you set need_version to no, make sure it does not cause -set_version
9005
# flags to be left without arguments
9006
need_version=unknown
9007
9008
case $host_os in
9009
aix3*)
9010
  version_type=linux
9011
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012
  shlibpath_var=LIBPATH
9013
9014
  # AIX 3 has no versioning support, so we append a major version to the name.
9015
  soname_spec='${libname}${release}${shared_ext}$major'
9016
  ;;
9017
9018
aix[4-9]*)
9019
  version_type=linux
9020
  need_lib_prefix=no
9021
  need_version=no
9022
  hardcode_into_libs=yes
9023
  if test "$host_cpu" = ia64; then
9024
    # AIX 5 supports IA64
9025
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026
    shlibpath_var=LD_LIBRARY_PATH
9027
  else
9028
    # With GCC up to 2.95.x, collect2 would create an import file
9029
    # for dependence libraries.  The import file would start with
9030
    # the line `#! .'.  This would cause the generated library to
9031
    # depend on `.', always an invalid library.  This was fixed in
9032
    # development snapshots of GCC prior to 3.0.
9033
    case $host_os in
9034
      aix4 | aix4.[01] | aix4.[01].*)
9035
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9036
	   echo ' yes '
9037
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9038
	:
9039
      else
9040
	can_build_shared=no
9041
      fi
9042
      ;;
9043
    esac
9044
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045
    # soname into executable. Probably we can add versioning support to
9046
    # collect2, so additional links can be useful in future.
9047
    if test "$aix_use_runtimelinking" = yes; then
9048
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049
      # instead of lib<name>.a to let people know that these are not
9050
      # typical AIX shared libraries.
9051
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052
    else
9053
      # We preserve .a as extension for shared libraries through AIX4.2
9054
      # and later when we are not doing run time linking.
9055
      library_names_spec='${libname}${release}.a $libname.a'
9056
      soname_spec='${libname}${release}${shared_ext}$major'
9057
    fi
9058
    shlibpath_var=LIBPATH
9059
  fi
9060
  ;;
9061
9062
amigaos*)
9063
  library_names_spec='$libname.ixlibrary $libname.a'
9064
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9065
  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'
9066
  ;;
9067
9068
beos*)
9069
  library_names_spec='${libname}${shared_ext}'
9070
  dynamic_linker="$host_os ld.so"
9071
  shlibpath_var=LIBRARY_PATH
9072
  ;;
9073
9074
bsdi[45]*)
9075
  version_type=linux
9076
  need_version=no
9077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078
  soname_spec='${libname}${release}${shared_ext}$major'
9079
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9080
  shlibpath_var=LD_LIBRARY_PATH
9081
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9082
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9083
  # the default ld.so.conf also contains /usr/contrib/lib and
9084
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9085
  # libtool to hard-code these into programs
9086
  ;;
9087
9088
cygwin* | mingw* | pw32*)
9089
  version_type=windows
9090
  shrext_cmds=".dll"
9091
  need_version=no
9092
  need_lib_prefix=no
9093
9094
  case $GCC,$host_os in
9095
  yes,cygwin* | yes,mingw* | yes,pw32*)
9096
    library_names_spec='$libname.dll.a'
9097
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9098
    postinstall_cmds='base_file=`basename \${file}`~
9099
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9100
      dldir=$destdir/`dirname \$dlpath`~
9101
      test -d \$dldir || mkdir -p \$dldir~
9102
      $install_prog $dir/$dlname \$dldir/$dlname~
9103
      chmod a+x \$dldir/$dlname'
9104
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9105
      dlpath=$dir/\$dldll~
9106
       $rm \$dlpath'
9107
    shlibpath_overrides_runpath=yes
9108
9109
    case $host_os in
9110
    cygwin*)
9111
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9112
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9114
      ;;
9115
    mingw*)
9116
      # MinGW DLLs use traditional 'lib' prefix
9117
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9120
        # It is most probably a Windows format PATH printed by
9121
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9122
        # path with ; separators, and with drive letters. We can handle the
9123
        # drive letters (cygwin fileutils understands them), so leave them,
9124
        # especially as we might pass files found there to a mingw objdump,
9125
        # which wouldn't understand a cygwinified path. Ahh.
9126
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9127
      else
9128
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9129
      fi
9130
      ;;
9131
    pw32*)
9132
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9133
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134
      ;;
9135
    esac
9136
    ;;
9137
9138
  *)
9139
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9140
    ;;
9141
  esac
9142
  dynamic_linker='Win32 ld.exe'
9143
  # FIXME: first we should search . and the directory the executable is in
9144
  shlibpath_var=PATH
9145
  ;;
9146
9147
darwin* | rhapsody*)
9148
  dynamic_linker="$host_os dyld"
9149
  version_type=darwin
9150
  need_lib_prefix=no
9151
  need_version=no
9152
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9153
  soname_spec='${libname}${release}${major}$shared_ext'
9154
  shlibpath_overrides_runpath=yes
9155
  shlibpath_var=DYLD_LIBRARY_PATH
9156
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9157
9158
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9159
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9160
  ;;
9161
9162
dgux*)
9163
  version_type=linux
9164
  need_lib_prefix=no
9165
  need_version=no
9166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9167
  soname_spec='${libname}${release}${shared_ext}$major'
9168
  shlibpath_var=LD_LIBRARY_PATH
9169
  ;;
9170
9171
freebsd1*)
9172
  dynamic_linker=no
9173
  ;;
9174
9175
freebsd* | dragonfly*)
9176
  # DragonFly does not have aout.  When/if they implement a new
9177
  # versioning mechanism, adjust this.
9178
  if test -x /usr/bin/objformat; then
9179
    objformat=`/usr/bin/objformat`
9180
  else
9181
    case $host_os in
9182
    freebsd[123]*) objformat=aout ;;
9183
    *) objformat=elf ;;
9184
    esac
9185
  fi
9186
  version_type=freebsd-$objformat
9187
  case $version_type in
9188
    freebsd-elf*)
9189
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9190
      need_version=no
9191
      need_lib_prefix=no
9192
      ;;
9193
    freebsd-*)
9194
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9195
      need_version=yes
9196
      ;;
9197
  esac
9198
  shlibpath_var=LD_LIBRARY_PATH
9199
  case $host_os in
9200
  freebsd2*)
9201
    shlibpath_overrides_runpath=yes
9202
    ;;
9203
  freebsd3.[01]* | freebsdelf3.[01]*)
9204
    shlibpath_overrides_runpath=yes
9205
    hardcode_into_libs=yes
9206
    ;;
9207
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9208
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9209
    shlibpath_overrides_runpath=no
9210
    hardcode_into_libs=yes
9211
    ;;
9212
  *) # from 4.6 on, and DragonFly
9213
    shlibpath_overrides_runpath=yes
9214
    hardcode_into_libs=yes
9215
    ;;
9216
  esac
9217
  ;;
9218
9219
gnu*)
9220
  version_type=linux
9221
  need_lib_prefix=no
9222
  need_version=no
9223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9224
  soname_spec='${libname}${release}${shared_ext}$major'
9225
  shlibpath_var=LD_LIBRARY_PATH
9226
  hardcode_into_libs=yes
9227
  ;;
9228
9229
hpux9* | hpux10* | hpux11*)
9230
  # Give a soname corresponding to the major version so that dld.sl refuses to
9231
  # link against other versions.
9232
  version_type=sunos
9233
  need_lib_prefix=no
9234
  need_version=no
9235
  case $host_cpu in
9236
  ia64*)
9237
    shrext_cmds='.so'
9238
    hardcode_into_libs=yes
9239
    dynamic_linker="$host_os dld.so"
9240
    shlibpath_var=LD_LIBRARY_PATH
9241
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9242
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243
    soname_spec='${libname}${release}${shared_ext}$major'
9244
    if test "X$HPUX_IA64_MODE" = X32; then
9245
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9246
    else
9247
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9248
    fi
9249
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9250
    ;;
9251
   hppa*64*)
9252
     shrext_cmds='.sl'
9253
     hardcode_into_libs=yes
9254
     dynamic_linker="$host_os dld.sl"
9255
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9256
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9257
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258
     soname_spec='${libname}${release}${shared_ext}$major'
9259
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9260
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9261
     ;;
9262
   *)
9263
    shrext_cmds='.sl'
9264
    dynamic_linker="$host_os dld.sl"
9265
    shlibpath_var=SHLIB_PATH
9266
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9267
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268
    soname_spec='${libname}${release}${shared_ext}$major'
9269
    ;;
9270
  esac
9271
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9272
  postinstall_cmds='chmod 555 $lib'
9273
  ;;
9274
9275
interix[3-9]*)
9276
  version_type=linux
9277
  need_lib_prefix=no
9278
  need_version=no
9279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280
  soname_spec='${libname}${release}${shared_ext}$major'
9281
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9282
  shlibpath_var=LD_LIBRARY_PATH
9283
  shlibpath_overrides_runpath=no
9284
  hardcode_into_libs=yes
9285
  ;;
9286
9287
irix5* | irix6* | nonstopux*)
9288
  case $host_os in
9289
    nonstopux*) version_type=nonstopux ;;
9290
    *)
9291
	if test "$lt_cv_prog_gnu_ld" = yes; then
9292
		version_type=linux
9293
	else
9294
		version_type=irix
9295
	fi ;;
9296
  esac
9297
  need_lib_prefix=no
9298
  need_version=no
9299
  soname_spec='${libname}${release}${shared_ext}$major'
9300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9301
  case $host_os in
9302
  irix5* | nonstopux*)
9303
    libsuff= shlibsuff=
9304
    ;;
9305
  *)
9306
    case $LD in # libtool.m4 will add one of these switches to LD
9307
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9308
      libsuff= shlibsuff= libmagic=32-bit;;
9309
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9310
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9311
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9312
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9313
    *) libsuff= shlibsuff= libmagic=never-match;;
9314
    esac
9315
    ;;
9316
  esac
9317
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9318
  shlibpath_overrides_runpath=no
9319
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9320
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9321
  hardcode_into_libs=yes
9322
  ;;
9323
9324
# No shared lib support for Linux oldld, aout, or coff.
9325
linux*oldld* | linux*aout* | linux*coff*)
9326
  dynamic_linker=no
9327
  ;;
9328
9329
# This must be Linux ELF.
9330
linux* | k*bsd*-gnu)
9331
  version_type=linux
9332
  need_lib_prefix=no
9333
  need_version=no
9334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335
  soname_spec='${libname}${release}${shared_ext}$major'
9336
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9337
  shlibpath_var=LD_LIBRARY_PATH
9338
  shlibpath_overrides_runpath=no
9339
  # This implies no fast_install, which is unacceptable.
9340
  # Some rework will be needed to allow for fast_install
9341
  # before this can be enabled.
9342
  hardcode_into_libs=yes
9343
9344
  # Append ld.so.conf contents to the search path
9345
  if test -f /etc/ld.so.conf; then
9346
    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' ' '`
9347
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9348
  fi
9349
9350
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9351
  # powerpc, because MkLinux only supported shared libraries with the
9352
  # GNU dynamic linker.  Since this was broken with cross compilers,
9353
  # most powerpc-linux boxes support dynamic linking these days and
9354
  # people can always --disable-shared, the test was removed, and we
9355
  # assume the GNU/Linux dynamic linker is in use.
9356
  dynamic_linker='GNU/Linux ld.so'
9357
  ;;
9358
9359
netbsdelf*-gnu)
9360
  version_type=linux
9361
  need_lib_prefix=no
9362
  need_version=no
9363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364
  soname_spec='${libname}${release}${shared_ext}$major'
9365
  shlibpath_var=LD_LIBRARY_PATH
9366
  shlibpath_overrides_runpath=no
9367
  hardcode_into_libs=yes
9368
  dynamic_linker='NetBSD ld.elf_so'
9369
  ;;
9370
9371
netbsd*)
9372
  version_type=sunos
9373
  need_lib_prefix=no
9374
  need_version=no
9375
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9376
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9377
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9378
    dynamic_linker='NetBSD (a.out) ld.so'
9379
  else
9380
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381
    soname_spec='${libname}${release}${shared_ext}$major'
9382
    dynamic_linker='NetBSD ld.elf_so'
9383
  fi
9384
  shlibpath_var=LD_LIBRARY_PATH
9385
  shlibpath_overrides_runpath=yes
9386
  hardcode_into_libs=yes
9387
  ;;
9388
9389
newsos6)
9390
  version_type=linux
9391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392
  shlibpath_var=LD_LIBRARY_PATH
9393
  shlibpath_overrides_runpath=yes
9394
  ;;
9395
9396
nto-qnx*)
9397
  version_type=linux
9398
  need_lib_prefix=no
9399
  need_version=no
9400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401
  soname_spec='${libname}${release}${shared_ext}$major'
9402
  shlibpath_var=LD_LIBRARY_PATH
9403
  shlibpath_overrides_runpath=yes
9404
  ;;
9405
9406
openbsd*)
9407
  version_type=sunos
9408
  sys_lib_dlsearch_path_spec="/usr/lib"
9409
  need_lib_prefix=no
9410
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9411
  case $host_os in
9412
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9413
    *)                         need_version=no  ;;
9414
  esac
9415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417
  shlibpath_var=LD_LIBRARY_PATH
9418
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9419
    case $host_os in
9420
      openbsd2.[89] | openbsd2.[89].*)
9421
	shlibpath_overrides_runpath=no
9422
	;;
9423
      *)
9424
	shlibpath_overrides_runpath=yes
9425
	;;
9426
      esac
9427
  else
9428
    shlibpath_overrides_runpath=yes
9429
  fi
9430
  ;;
9431
9432
os2*)
9433
  libname_spec='$name'
9434
  shrext_cmds=".dll"
9435
  need_lib_prefix=no
9436
  library_names_spec='$libname${shared_ext} $libname.a'
9437
  dynamic_linker='OS/2 ld.exe'
9438
  shlibpath_var=LIBPATH
9439
  ;;
9440
9441
osf3* | osf4* | osf5*)
9442
  version_type=osf
9443
  need_lib_prefix=no
9444
  need_version=no
9445
  soname_spec='${libname}${release}${shared_ext}$major'
9446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447
  shlibpath_var=LD_LIBRARY_PATH
9448
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9449
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9450
  ;;
9451
9452
rdos*)
9453
  dynamic_linker=no
9454
  ;;
9455
9456
solaris*)
9457
  version_type=linux
9458
  need_lib_prefix=no
9459
  need_version=no
9460
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461
  soname_spec='${libname}${release}${shared_ext}$major'
9462
  shlibpath_var=LD_LIBRARY_PATH
9463
  shlibpath_overrides_runpath=yes
9464
  hardcode_into_libs=yes
9465
  # ldd complains unless libraries are executable
9466
  postinstall_cmds='chmod +x $lib'
9467
  ;;
9468
9469
sunos4*)
9470
  version_type=sunos
9471
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9472
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9473
  shlibpath_var=LD_LIBRARY_PATH
9474
  shlibpath_overrides_runpath=yes
9475
  if test "$with_gnu_ld" = yes; then
9476
    need_lib_prefix=no
9477
  fi
9478
  need_version=yes
9479
  ;;
9480
9481
sysv4 | sysv4.3*)
9482
  version_type=linux
9483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484
  soname_spec='${libname}${release}${shared_ext}$major'
9485
  shlibpath_var=LD_LIBRARY_PATH
9486
  case $host_vendor in
9487
    sni)
9488
      shlibpath_overrides_runpath=no
9489
      need_lib_prefix=no
9490
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9491
      runpath_var=LD_RUN_PATH
9492
      ;;
9493
    siemens)
9494
      need_lib_prefix=no
9495
      ;;
9496
    motorola)
9497
      need_lib_prefix=no
9498
      need_version=no
9499
      shlibpath_overrides_runpath=no
9500
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9501
      ;;
9502
  esac
9503
  ;;
9504
9505
sysv4*MP*)
9506
  if test -d /usr/nec ;then
9507
    version_type=linux
9508
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9509
    soname_spec='$libname${shared_ext}.$major'
9510
    shlibpath_var=LD_LIBRARY_PATH
9511
  fi
9512
  ;;
9513
9514
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9515
  version_type=freebsd-elf
9516
  need_lib_prefix=no
9517
  need_version=no
9518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9519
  soname_spec='${libname}${release}${shared_ext}$major'
9520
  shlibpath_var=LD_LIBRARY_PATH
9521
  hardcode_into_libs=yes
9522
  if test "$with_gnu_ld" = yes; then
9523
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9524
    shlibpath_overrides_runpath=no
9525
  else
9526
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9527
    shlibpath_overrides_runpath=yes
9528
    case $host_os in
9529
      sco3.2v5*)
9530
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9531
	;;
9532
    esac
9533
  fi
9534
  sys_lib_dlsearch_path_spec='/usr/lib'
9535
  ;;
9536
9537
uts4*)
9538
  version_type=linux
9539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540
  soname_spec='${libname}${release}${shared_ext}$major'
9541
  shlibpath_var=LD_LIBRARY_PATH
9542
  ;;
9543
9544
*)
9545
  dynamic_linker=no
9546
  ;;
9547
esac
9548
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9549
echo "${ECHO_T}$dynamic_linker" >&6; }
9550
test "$dynamic_linker" = no && can_build_shared=no
9551
9552
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9553
  echo $ECHO_N "(cached) $ECHO_C" >&6
9554
else
9555
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9556
fi
9557
9558
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9559
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9560
  echo $ECHO_N "(cached) $ECHO_C" >&6
9561
else
9562
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9563
fi
9564
9565
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9566
9567
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9568
if test "$GCC" = yes; then
9569
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9570
fi
9571
9572
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9574
hardcode_action=
9575
if test -n "$hardcode_libdir_flag_spec" || \
9576
   test -n "$runpath_var" || \
9577
   test "X$hardcode_automatic" = "Xyes" ; then
9578
9579
  # We can hardcode non-existant directories.
9580
  if test "$hardcode_direct" != no &&
9581
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582
     # have to relink, otherwise we might link with an installed library
9583
     # when we should be linking with a yet-to-be-installed one
9584
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585
     test "$hardcode_minus_L" != no; then
9586
    # Linking always hardcodes the temporary library directory.
9587
    hardcode_action=relink
9588
  else
9589
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590
    hardcode_action=immediate
9591
  fi
9592
else
9593
  # We cannot hardcode anything, or else we can only hardcode existing
9594
  # directories.
9595
  hardcode_action=unsupported
9596
fi
9597
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598
echo "${ECHO_T}$hardcode_action" >&6; }
9599
9600
if test "$hardcode_action" = relink; then
9601
  # Fast installation is not supported
9602
  enable_fast_install=no
9603
elif test "$shlibpath_overrides_runpath" = yes ||
9604
     test "$enable_shared" = no; then
9605
  # Fast installation is not necessary
9606
  enable_fast_install=needless
9607
fi
9608
9609
striplib=
9610
old_striplib=
9611
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9612
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9613
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9614
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9615
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9616
  { echo "$as_me:$LINENO: result: yes" >&5
9617
echo "${ECHO_T}yes" >&6; }
9618
else
9619
# FIXME - insert some real tests, host_os isn't really good enough
9620
  case $host_os in
9621
   darwin*)
9622
       if test -n "$STRIP" ; then
9623
         striplib="$STRIP -x"
9624
         old_striplib="$STRIP -S"
9625
         { echo "$as_me:$LINENO: result: yes" >&5
9626
echo "${ECHO_T}yes" >&6; }
9627
       else
9628
  { echo "$as_me:$LINENO: result: no" >&5
9629
echo "${ECHO_T}no" >&6; }
9630
fi
9631
       ;;
9632
   *)
9633
  { echo "$as_me:$LINENO: result: no" >&5
9634
echo "${ECHO_T}no" >&6; }
9635
    ;;
9636
  esac
9637
fi
9638
9639
if test "x$enable_dlopen" != xyes; then
9640
  enable_dlopen=unknown
9641
  enable_dlopen_self=unknown
9642
  enable_dlopen_self_static=unknown
9643
else
9644
  lt_cv_dlopen=no
9645
  lt_cv_dlopen_libs=
9646
9647
  case $host_os in
9648
  beos*)
9649
    lt_cv_dlopen="load_add_on"
9650
    lt_cv_dlopen_libs=
9651
    lt_cv_dlopen_self=yes
9652
    ;;
9653
9654
  mingw* | pw32*)
9655
    lt_cv_dlopen="LoadLibrary"
9656
    lt_cv_dlopen_libs=
9657
   ;;
9658
9659
  cygwin*)
9660
    lt_cv_dlopen="dlopen"
9661
    lt_cv_dlopen_libs=
9662
   ;;
9663
9664
  darwin*)
9665
  # if libdl is installed we need to link against it
9666
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9667
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9668
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9669
  echo $ECHO_N "(cached) $ECHO_C" >&6
9670
else
9671
  ac_check_lib_save_LIBS=$LIBS
9672
LIBS="-ldl  $LIBS"
9673
cat >conftest.$ac_ext <<_ACEOF
9674
/* confdefs.h.  */
9675
_ACEOF
9676
cat confdefs.h >>conftest.$ac_ext
9677
cat >>conftest.$ac_ext <<_ACEOF
9678
/* end confdefs.h.  */
9679
9680
/* Override any GCC internal prototype to avoid an error.
9681
   Use char because int might match the return type of a GCC
9682
   builtin and then its argument prototype would still apply.  */
9683
#ifdef __cplusplus
9684
extern "C"
9685
#endif
9686
char dlopen ();
9687
int
9688
main ()
9689
{
9690
return dlopen ();
9691
  ;
9692
  return 0;
9693
}
9694
_ACEOF
9695
rm -f conftest.$ac_objext conftest$ac_exeext
9696
if { (ac_try="$ac_link"
9697
case "(($ac_try" in
9698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699
  *) ac_try_echo=$ac_try;;
9700
esac
9701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702
  (eval "$ac_link") 2>conftest.er1
9703
  ac_status=$?
9704
  grep -v '^ *+' conftest.er1 >conftest.err
9705
  rm -f conftest.er1
9706
  cat conftest.err >&5
9707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708
  (exit $ac_status); } && {
9709
	 test -z "$ac_c_werror_flag" ||
9710
	 test ! -s conftest.err
9711
       } && test -s conftest$ac_exeext &&
9712
       $as_test_x conftest$ac_exeext; then
9713
  ac_cv_lib_dl_dlopen=yes
9714
else
9715
  echo "$as_me: failed program was:" >&5
9716
sed 's/^/| /' conftest.$ac_ext >&5
9717
9718
	ac_cv_lib_dl_dlopen=no
9719
fi
9720
9721
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722
      conftest$ac_exeext conftest.$ac_ext
9723
LIBS=$ac_check_lib_save_LIBS
9724
fi
9725
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9727
if test $ac_cv_lib_dl_dlopen = yes; then
9728
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9729
else
9730
9731
    lt_cv_dlopen="dyld"
9732
    lt_cv_dlopen_libs=
9733
    lt_cv_dlopen_self=yes
9734
9735
fi
9736
9737
   ;;
9738
9739
  *)
9740
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9741
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9742
if test "${ac_cv_func_shl_load+set}" = set; then
9743
  echo $ECHO_N "(cached) $ECHO_C" >&6
9744
else
9745
  cat >conftest.$ac_ext <<_ACEOF
9746
/* confdefs.h.  */
9747
_ACEOF
9748
cat confdefs.h >>conftest.$ac_ext
9749
cat >>conftest.$ac_ext <<_ACEOF
9750
/* end confdefs.h.  */
9751
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9753
#define shl_load innocuous_shl_load
9754
9755
/* System header to define __stub macros and hopefully few prototypes,
9756
    which can conflict with char shl_load (); below.
9757
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758
    <limits.h> exists even on freestanding compilers.  */
9759
9760
#ifdef __STDC__
9761
# include <limits.h>
9762
#else
9763
# include <assert.h>
9764
#endif
9765
9766
#undef shl_load
9767
9768
/* Override any GCC internal prototype to avoid an error.
9769
   Use char because int might match the return type of a GCC
9770
   builtin and then its argument prototype would still apply.  */
9771
#ifdef __cplusplus
9772
extern "C"
9773
#endif
9774
char shl_load ();
9775
/* The GNU C library defines this for functions which it implements
9776
    to always fail with ENOSYS.  Some functions are actually named
9777
    something starting with __ and the normal name is an alias.  */
9778
#if defined __stub_shl_load || defined __stub___shl_load
9779
choke me
9780
#endif
9781
9782
int
9783
main ()
9784
{
9785
return shl_load ();
9786
  ;
9787
  return 0;
9788
}
9789
_ACEOF
9790
rm -f conftest.$ac_objext conftest$ac_exeext
9791
if { (ac_try="$ac_link"
9792
case "(($ac_try" in
9793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794
  *) ac_try_echo=$ac_try;;
9795
esac
9796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797
  (eval "$ac_link") 2>conftest.er1
9798
  ac_status=$?
9799
  grep -v '^ *+' conftest.er1 >conftest.err
9800
  rm -f conftest.er1
9801
  cat conftest.err >&5
9802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803
  (exit $ac_status); } && {
9804
	 test -z "$ac_c_werror_flag" ||
9805
	 test ! -s conftest.err
9806
       } && test -s conftest$ac_exeext &&
9807
       $as_test_x conftest$ac_exeext; then
9808
  ac_cv_func_shl_load=yes
9809
else
9810
  echo "$as_me: failed program was:" >&5
9811
sed 's/^/| /' conftest.$ac_ext >&5
9812
9813
	ac_cv_func_shl_load=no
9814
fi
9815
9816
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817
      conftest$ac_exeext conftest.$ac_ext
9818
fi
9819
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9820
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9821
if test $ac_cv_func_shl_load = yes; then
9822
  lt_cv_dlopen="shl_load"
9823
else
9824
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9825
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9826
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9827
  echo $ECHO_N "(cached) $ECHO_C" >&6
9828
else
9829
  ac_check_lib_save_LIBS=$LIBS
9830
LIBS="-ldld  $LIBS"
9831
cat >conftest.$ac_ext <<_ACEOF
9832
/* confdefs.h.  */
9833
_ACEOF
9834
cat confdefs.h >>conftest.$ac_ext
9835
cat >>conftest.$ac_ext <<_ACEOF
9836
/* end confdefs.h.  */
9837
9838
/* Override any GCC internal prototype to avoid an error.
9839
   Use char because int might match the return type of a GCC
9840
   builtin and then its argument prototype would still apply.  */
9841
#ifdef __cplusplus
9842
extern "C"
9843
#endif
9844
char shl_load ();
9845
int
9846
main ()
9847
{
9848
return shl_load ();
9849
  ;
9850
  return 0;
9851
}
9852
_ACEOF
9853
rm -f conftest.$ac_objext conftest$ac_exeext
9854
if { (ac_try="$ac_link"
9855
case "(($ac_try" in
9856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857
  *) ac_try_echo=$ac_try;;
9858
esac
9859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860
  (eval "$ac_link") 2>conftest.er1
9861
  ac_status=$?
9862
  grep -v '^ *+' conftest.er1 >conftest.err
9863
  rm -f conftest.er1
9864
  cat conftest.err >&5
9865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866
  (exit $ac_status); } && {
9867
	 test -z "$ac_c_werror_flag" ||
9868
	 test ! -s conftest.err
9869
       } && test -s conftest$ac_exeext &&
9870
       $as_test_x conftest$ac_exeext; then
9871
  ac_cv_lib_dld_shl_load=yes
9872
else
9873
  echo "$as_me: failed program was:" >&5
9874
sed 's/^/| /' conftest.$ac_ext >&5
9875
9876
	ac_cv_lib_dld_shl_load=no
9877
fi
9878
9879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880
      conftest$ac_exeext conftest.$ac_ext
9881
LIBS=$ac_check_lib_save_LIBS
9882
fi
9883
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9884
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9885
if test $ac_cv_lib_dld_shl_load = yes; then
9886
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9887
else
9888
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9889
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9890
if test "${ac_cv_func_dlopen+set}" = set; then
9891
  echo $ECHO_N "(cached) $ECHO_C" >&6
9892
else
9893
  cat >conftest.$ac_ext <<_ACEOF
9894
/* confdefs.h.  */
9895
_ACEOF
9896
cat confdefs.h >>conftest.$ac_ext
9897
cat >>conftest.$ac_ext <<_ACEOF
9898
/* end confdefs.h.  */
9899
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9900
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9901
#define dlopen innocuous_dlopen
9902
9903
/* System header to define __stub macros and hopefully few prototypes,
9904
    which can conflict with char dlopen (); below.
9905
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906
    <limits.h> exists even on freestanding compilers.  */
9907
9908
#ifdef __STDC__
9909
# include <limits.h>
9910
#else
9911
# include <assert.h>
9912
#endif
9913
9914
#undef dlopen
9915
9916
/* Override any GCC internal prototype to avoid an error.
9917
   Use char because int might match the return type of a GCC
9918
   builtin and then its argument prototype would still apply.  */
9919
#ifdef __cplusplus
9920
extern "C"
9921
#endif
9922
char dlopen ();
9923
/* The GNU C library defines this for functions which it implements
9924
    to always fail with ENOSYS.  Some functions are actually named
9925
    something starting with __ and the normal name is an alias.  */
9926
#if defined __stub_dlopen || defined __stub___dlopen
9927
choke me
9928
#endif
9929
9930
int
9931
main ()
9932
{
9933
return dlopen ();
9934
  ;
9935
  return 0;
9936
}
9937
_ACEOF
9938
rm -f conftest.$ac_objext conftest$ac_exeext
9939
if { (ac_try="$ac_link"
9940
case "(($ac_try" in
9941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942
  *) ac_try_echo=$ac_try;;
9943
esac
9944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945
  (eval "$ac_link") 2>conftest.er1
9946
  ac_status=$?
9947
  grep -v '^ *+' conftest.er1 >conftest.err
9948
  rm -f conftest.er1
9949
  cat conftest.err >&5
9950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
  (exit $ac_status); } && {
9952
	 test -z "$ac_c_werror_flag" ||
9953
	 test ! -s conftest.err
9954
       } && test -s conftest$ac_exeext &&
9955
       $as_test_x conftest$ac_exeext; then
9956
  ac_cv_func_dlopen=yes
9957
else
9958
  echo "$as_me: failed program was:" >&5
9959
sed 's/^/| /' conftest.$ac_ext >&5
9960
9961
	ac_cv_func_dlopen=no
9962
fi
9963
9964
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965
      conftest$ac_exeext conftest.$ac_ext
9966
fi
9967
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9968
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9969
if test $ac_cv_func_dlopen = yes; then
9970
  lt_cv_dlopen="dlopen"
9971
else
9972
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9973
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9974
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9975
  echo $ECHO_N "(cached) $ECHO_C" >&6
9976
else
9977
  ac_check_lib_save_LIBS=$LIBS
9978
LIBS="-ldl  $LIBS"
9979
cat >conftest.$ac_ext <<_ACEOF
9980
/* confdefs.h.  */
9981
_ACEOF
9982
cat confdefs.h >>conftest.$ac_ext
9983
cat >>conftest.$ac_ext <<_ACEOF
9984
/* end confdefs.h.  */
9985
9986
/* Override any GCC internal prototype to avoid an error.
9987
   Use char because int might match the return type of a GCC
9988
   builtin and then its argument prototype would still apply.  */
9989
#ifdef __cplusplus
9990
extern "C"
9991
#endif
9992
char dlopen ();
9993
int
9994
main ()
9995
{
9996
return dlopen ();
9997
  ;
9998
  return 0;
9999
}
10000
_ACEOF
10001
rm -f conftest.$ac_objext conftest$ac_exeext
10002
if { (ac_try="$ac_link"
10003
case "(($ac_try" in
10004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005
  *) ac_try_echo=$ac_try;;
10006
esac
10007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008
  (eval "$ac_link") 2>conftest.er1
10009
  ac_status=$?
10010
  grep -v '^ *+' conftest.er1 >conftest.err
10011
  rm -f conftest.er1
10012
  cat conftest.err >&5
10013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014
  (exit $ac_status); } && {
10015
	 test -z "$ac_c_werror_flag" ||
10016
	 test ! -s conftest.err
10017
       } && test -s conftest$ac_exeext &&
10018
       $as_test_x conftest$ac_exeext; then
10019
  ac_cv_lib_dl_dlopen=yes
10020
else
10021
  echo "$as_me: failed program was:" >&5
10022
sed 's/^/| /' conftest.$ac_ext >&5
10023
10024
	ac_cv_lib_dl_dlopen=no
10025
fi
10026
10027
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028
      conftest$ac_exeext conftest.$ac_ext
10029
LIBS=$ac_check_lib_save_LIBS
10030
fi
10031
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10033
if test $ac_cv_lib_dl_dlopen = yes; then
10034
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10035
else
10036
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10037
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10038
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10039
  echo $ECHO_N "(cached) $ECHO_C" >&6
10040
else
10041
  ac_check_lib_save_LIBS=$LIBS
10042
LIBS="-lsvld  $LIBS"
10043
cat >conftest.$ac_ext <<_ACEOF
10044
/* confdefs.h.  */
10045
_ACEOF
10046
cat confdefs.h >>conftest.$ac_ext
10047
cat >>conftest.$ac_ext <<_ACEOF
10048
/* end confdefs.h.  */
10049
10050
/* Override any GCC internal prototype to avoid an error.
10051
   Use char because int might match the return type of a GCC
10052
   builtin and then its argument prototype would still apply.  */
10053
#ifdef __cplusplus
10054
extern "C"
10055
#endif
10056
char dlopen ();
10057
int
10058
main ()
10059
{
10060
return dlopen ();
10061
  ;
10062
  return 0;
10063
}
10064
_ACEOF
10065
rm -f conftest.$ac_objext conftest$ac_exeext
10066
if { (ac_try="$ac_link"
10067
case "(($ac_try" in
10068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069
  *) ac_try_echo=$ac_try;;
10070
esac
10071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072
  (eval "$ac_link") 2>conftest.er1
10073
  ac_status=$?
10074
  grep -v '^ *+' conftest.er1 >conftest.err
10075
  rm -f conftest.er1
10076
  cat conftest.err >&5
10077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078
  (exit $ac_status); } && {
10079
	 test -z "$ac_c_werror_flag" ||
10080
	 test ! -s conftest.err
10081
       } && test -s conftest$ac_exeext &&
10082
       $as_test_x conftest$ac_exeext; then
10083
  ac_cv_lib_svld_dlopen=yes
10084
else
10085
  echo "$as_me: failed program was:" >&5
10086
sed 's/^/| /' conftest.$ac_ext >&5
10087
10088
	ac_cv_lib_svld_dlopen=no
10089
fi
10090
10091
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10092
      conftest$ac_exeext conftest.$ac_ext
10093
LIBS=$ac_check_lib_save_LIBS
10094
fi
10095
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097
if test $ac_cv_lib_svld_dlopen = yes; then
10098
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10099
else
10100
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10101
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10102
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10103
  echo $ECHO_N "(cached) $ECHO_C" >&6
10104
else
10105
  ac_check_lib_save_LIBS=$LIBS
10106
LIBS="-ldld  $LIBS"
10107
cat >conftest.$ac_ext <<_ACEOF
10108
/* confdefs.h.  */
10109
_ACEOF
10110
cat confdefs.h >>conftest.$ac_ext
10111
cat >>conftest.$ac_ext <<_ACEOF
10112
/* end confdefs.h.  */
10113
10114
/* Override any GCC internal prototype to avoid an error.
10115
   Use char because int might match the return type of a GCC
10116
   builtin and then its argument prototype would still apply.  */
10117
#ifdef __cplusplus
10118
extern "C"
10119
#endif
10120
char dld_link ();
10121
int
10122
main ()
10123
{
10124
return dld_link ();
10125
  ;
10126
  return 0;
10127
}
10128
_ACEOF
10129
rm -f conftest.$ac_objext conftest$ac_exeext
10130
if { (ac_try="$ac_link"
10131
case "(($ac_try" in
10132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133
  *) ac_try_echo=$ac_try;;
10134
esac
10135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136
  (eval "$ac_link") 2>conftest.er1
10137
  ac_status=$?
10138
  grep -v '^ *+' conftest.er1 >conftest.err
10139
  rm -f conftest.er1
10140
  cat conftest.err >&5
10141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142
  (exit $ac_status); } && {
10143
	 test -z "$ac_c_werror_flag" ||
10144
	 test ! -s conftest.err
10145
       } && test -s conftest$ac_exeext &&
10146
       $as_test_x conftest$ac_exeext; then
10147
  ac_cv_lib_dld_dld_link=yes
10148
else
10149
  echo "$as_me: failed program was:" >&5
10150
sed 's/^/| /' conftest.$ac_ext >&5
10151
10152
	ac_cv_lib_dld_dld_link=no
10153
fi
10154
10155
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156
      conftest$ac_exeext conftest.$ac_ext
10157
LIBS=$ac_check_lib_save_LIBS
10158
fi
10159
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10160
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10161
if test $ac_cv_lib_dld_dld_link = yes; then
10162
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10163
fi
10164
10165
10166
fi
10167
10168
10169
fi
10170
10171
10172
fi
10173
10174
10175
fi
10176
10177
10178
fi
10179
10180
    ;;
10181
  esac
10182
10183
  if test "x$lt_cv_dlopen" != xno; then
10184
    enable_dlopen=yes
10185
  else
10186
    enable_dlopen=no
10187
  fi
10188
10189
  case $lt_cv_dlopen in
10190
  dlopen)
10191
    save_CPPFLAGS="$CPPFLAGS"
10192
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10193
10194
    save_LDFLAGS="$LDFLAGS"
10195
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10196
10197
    save_LIBS="$LIBS"
10198
    LIBS="$lt_cv_dlopen_libs $LIBS"
10199
10200
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10201
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10202
if test "${lt_cv_dlopen_self+set}" = set; then
10203
  echo $ECHO_N "(cached) $ECHO_C" >&6
10204
else
10205
  	  if test "$cross_compiling" = yes; then :
10206
  lt_cv_dlopen_self=cross
10207
else
10208
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10209
  lt_status=$lt_dlunknown
10210
  cat > conftest.$ac_ext <<EOF
10211
#line 10211 "configure"
10212
#include "confdefs.h"
10213
10214
#if HAVE_DLFCN_H
10215
#include <dlfcn.h>
10216
#endif
10217
10218
#include <stdio.h>
10219
10220
#ifdef RTLD_GLOBAL
10221
#  define LT_DLGLOBAL		RTLD_GLOBAL
10222
#else
10223
#  ifdef DL_GLOBAL
10224
#    define LT_DLGLOBAL		DL_GLOBAL
10225
#  else
10226
#    define LT_DLGLOBAL		0
10227
#  endif
10228
#endif
10229
10230
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231
   find out it does not work in some platform. */
10232
#ifndef LT_DLLAZY_OR_NOW
10233
#  ifdef RTLD_LAZY
10234
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10235
#  else
10236
#    ifdef DL_LAZY
10237
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10238
#    else
10239
#      ifdef RTLD_NOW
10240
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10241
#      else
10242
#        ifdef DL_NOW
10243
#          define LT_DLLAZY_OR_NOW	DL_NOW
10244
#        else
10245
#          define LT_DLLAZY_OR_NOW	0
10246
#        endif
10247
#      endif
10248
#    endif
10249
#  endif
10250
#endif
10251
10252
#ifdef __cplusplus
10253
extern "C" void exit (int);
10254
#endif
10255
10256
void fnord() { int i=42;}
10257
int main ()
10258
{
10259
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10260
  int status = $lt_dlunknown;
10261
10262
  if (self)
10263
    {
10264
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10265
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10266
      /* dlclose (self); */
10267
    }
10268
  else
10269
    puts (dlerror ());
10270
10271
    exit (status);
10272
}
10273
EOF
10274
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275
  (eval $ac_link) 2>&5
10276
  ac_status=$?
10277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10279
    (./conftest; exit; ) >&5 2>/dev/null
10280
    lt_status=$?
10281
    case x$lt_status in
10282
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10283
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10284
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10285
    esac
10286
  else :
10287
    # compilation failed
10288
    lt_cv_dlopen_self=no
10289
  fi
10290
fi
10291
rm -fr conftest*
10292
10293
10294
fi
10295
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10296
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10297
10298
    if test "x$lt_cv_dlopen_self" = xyes; then
10299
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10300
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10301
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10302
if test "${lt_cv_dlopen_self_static+set}" = set; then
10303
  echo $ECHO_N "(cached) $ECHO_C" >&6
10304
else
10305
  	  if test "$cross_compiling" = yes; then :
10306
  lt_cv_dlopen_self_static=cross
10307
else
10308
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309
  lt_status=$lt_dlunknown
10310
  cat > conftest.$ac_ext <<EOF
10311
#line 10311 "configure"
10312
#include "confdefs.h"
10313
10314
#if HAVE_DLFCN_H
10315
#include <dlfcn.h>
10316
#endif
10317
10318
#include <stdio.h>
10319
10320
#ifdef RTLD_GLOBAL
10321
#  define LT_DLGLOBAL		RTLD_GLOBAL
10322
#else
10323
#  ifdef DL_GLOBAL
10324
#    define LT_DLGLOBAL		DL_GLOBAL
10325
#  else
10326
#    define LT_DLGLOBAL		0
10327
#  endif
10328
#endif
10329
10330
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331
   find out it does not work in some platform. */
10332
#ifndef LT_DLLAZY_OR_NOW
10333
#  ifdef RTLD_LAZY
10334
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10335
#  else
10336
#    ifdef DL_LAZY
10337
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10338
#    else
10339
#      ifdef RTLD_NOW
10340
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10341
#      else
10342
#        ifdef DL_NOW
10343
#          define LT_DLLAZY_OR_NOW	DL_NOW
10344
#        else
10345
#          define LT_DLLAZY_OR_NOW	0
10346
#        endif
10347
#      endif
10348
#    endif
10349
#  endif
10350
#endif
10351
10352
#ifdef __cplusplus
10353
extern "C" void exit (int);
10354
#endif
10355
10356
void fnord() { int i=42;}
10357
int main ()
10358
{
10359
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10360
  int status = $lt_dlunknown;
10361
10362
  if (self)
10363
    {
10364
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10365
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10366
      /* dlclose (self); */
10367
    }
10368
  else
10369
    puts (dlerror ());
10370
10371
    exit (status);
10372
}
10373
EOF
10374
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375
  (eval $ac_link) 2>&5
10376
  ac_status=$?
10377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10379
    (./conftest; exit; ) >&5 2>/dev/null
10380
    lt_status=$?
10381
    case x$lt_status in
10382
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10383
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10384
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10385
    esac
10386
  else :
10387
    # compilation failed
10388
    lt_cv_dlopen_self_static=no
10389
  fi
10390
fi
10391
rm -fr conftest*
10392
10393
10394
fi
10395
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10396
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10397
    fi
10398
10399
    CPPFLAGS="$save_CPPFLAGS"
10400
    LDFLAGS="$save_LDFLAGS"
10401
    LIBS="$save_LIBS"
10402
    ;;
10403
  esac
10404
10405
  case $lt_cv_dlopen_self in
10406
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10407
  *) enable_dlopen_self=unknown ;;
10408
  esac
10409
10410
  case $lt_cv_dlopen_self_static in
10411
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10412
  *) enable_dlopen_self_static=unknown ;;
10413
  esac
10414
fi
10415
10416
10417
# Report which library types will actually be built
10418
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10419
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10420
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10421
echo "${ECHO_T}$can_build_shared" >&6; }
10422
10423
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10424
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10425
test "$can_build_shared" = "no" && enable_shared=no
10426
10427
# On AIX, shared libraries and static libraries use the same namespace, and
10428
# are all built from PIC.
10429
case $host_os in
10430
aix3*)
10431
  test "$enable_shared" = yes && enable_static=no
10432
  if test -n "$RANLIB"; then
10433
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10434
    postinstall_cmds='$RANLIB $lib'
10435
  fi
10436
  ;;
10437
10438
aix[4-9]*)
10439
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10440
    test "$enable_shared" = yes && enable_static=no
10441
  fi
10442
    ;;
10443
esac
10444
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10445
echo "${ECHO_T}$enable_shared" >&6; }
10446
10447
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10448
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10449
# Make sure either enable_shared or enable_static is yes.
10450
test "$enable_shared" = yes || enable_static=yes
10451
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10452
echo "${ECHO_T}$enable_static" >&6; }
10453
10454
# The else clause should only fire when bootstrapping the
10455
# libtool distribution, otherwise you forgot to ship ltmain.sh
10456
# with your package, and you will get complaints that there are
10457
# no rules to generate ltmain.sh.
10458
if test -f "$ltmain"; then
10459
  # See if we are running on zsh, and set the options which allow our commands through
10460
  # without removal of \ escapes.
10461
  if test -n "${ZSH_VERSION+set}" ; then
10462
    setopt NO_GLOB_SUBST
10463
  fi
10464
  # Now quote all the things that may contain metacharacters while being
10465
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10466
  # variables and quote the copies for generation of the libtool script.
10467
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10468
    SED SHELL STRIP \
10469
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10470
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10471
    deplibs_check_method reload_flag reload_cmds need_locks \
10472
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10473
    lt_cv_sys_global_symbol_to_c_name_address \
10474
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10475
    old_postinstall_cmds old_postuninstall_cmds \
10476
    compiler \
10477
    CC \
10478
    LD \
10479
    lt_prog_compiler_wl \
10480
    lt_prog_compiler_pic \
10481
    lt_prog_compiler_static \
10482
    lt_prog_compiler_no_builtin_flag \
10483
    export_dynamic_flag_spec \
10484
    thread_safe_flag_spec \
10485
    whole_archive_flag_spec \
10486
    enable_shared_with_static_runtimes \
10487
    old_archive_cmds \
10488
    old_archive_from_new_cmds \
10489
    predep_objects \
10490
    postdep_objects \
10491
    predeps \
10492
    postdeps \
10493
    compiler_lib_search_path \
10494
    compiler_lib_search_dirs \
10495
    archive_cmds \
10496
    archive_expsym_cmds \
10497
    postinstall_cmds \
10498
    postuninstall_cmds \
10499
    old_archive_from_expsyms_cmds \
10500
    allow_undefined_flag \
10501
    no_undefined_flag \
10502
    export_symbols_cmds \
10503
    hardcode_libdir_flag_spec \
10504
    hardcode_libdir_flag_spec_ld \
10505
    hardcode_libdir_separator \
10506
    hardcode_automatic \
10507
    module_cmds \
10508
    module_expsym_cmds \
10509
    lt_cv_prog_compiler_c_o \
10510
    fix_srcfile_path \
10511
    exclude_expsyms \
10512
    include_expsyms; do
10513
10514
    case $var in
10515
    old_archive_cmds | \
10516
    old_archive_from_new_cmds | \
10517
    archive_cmds | \
10518
    archive_expsym_cmds | \
10519
    module_cmds | \
10520
    module_expsym_cmds | \
10521
    old_archive_from_expsyms_cmds | \
10522
    export_symbols_cmds | \
10523
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524
    postinstall_cmds | postuninstall_cmds | \
10525
    old_postinstall_cmds | old_postuninstall_cmds | \
10526
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527
      # Double-quote double-evaled strings.
10528
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10529
      ;;
10530
    *)
10531
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10532
      ;;
10533
    esac
10534
  done
10535
10536
  case $lt_echo in
10537
  *'\$0 --fallback-echo"')
10538
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10539
    ;;
10540
  esac
10541
10542
cfgfile="${ofile}T"
10543
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544
  $rm -f "$cfgfile"
10545
  { echo "$as_me:$LINENO: creating $ofile" >&5
10546
echo "$as_me: creating $ofile" >&6;}
10547
10548
  cat <<__EOF__ >> "$cfgfile"
10549
#! $SHELL
10550
10551
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554
#
10555
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10556
# Free Software Foundation, Inc.
10557
#
10558
# This file is part of GNU Libtool:
10559
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560
#
10561
# This program is free software; you can redistribute it and/or modify
10562
# it under the terms of the GNU General Public License as published by
10563
# the Free Software Foundation; either version 2 of the License, or
10564
# (at your option) any later version.
10565
#
10566
# This program is distributed in the hope that it will be useful, but
10567
# WITHOUT ANY WARRANTY; without even the implied warranty of
10568
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10569
# General Public License for more details.
10570
#
10571
# You should have received a copy of the GNU General Public License
10572
# along with this program; if not, write to the Free Software
10573
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10574
#
10575
# As a special exception to the GNU General Public License, if you
10576
# distribute this file as part of a program that contains a
10577
# configuration script generated by Autoconf, you may include it under
10578
# the same distribution terms that you use for the rest of that program.
10579
10580
# A sed program that does not truncate output.
10581
SED=$lt_SED
10582
10583
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10584
Xsed="$SED -e 1s/^X//"
10585
10586
# The HP-UX ksh and POSIX shell print the target directory to stdout
10587
# if CDPATH is set.
10588
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10589
10590
# The names of the tagged configurations supported by this script.
10591
available_tags=
10592
10593
# ### BEGIN LIBTOOL CONFIG
10594
10595
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596
10597
# Shell to use when invoking shell scripts.
10598
SHELL=$lt_SHELL
10599
10600
# Whether or not to build shared libraries.
10601
build_libtool_libs=$enable_shared
10602
10603
# Whether or not to build static libraries.
10604
build_old_libs=$enable_static
10605
10606
# Whether or not to add -lc for building shared libraries.
10607
build_libtool_need_lc=$archive_cmds_need_lc
10608
10609
# Whether or not to disallow shared libs when runtime libs are static
10610
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611
10612
# Whether or not to optimize for fast installation.
10613
fast_install=$enable_fast_install
10614
10615
# The host system.
10616
host_alias=$host_alias
10617
host=$host
10618
host_os=$host_os
10619
10620
# The build system.
10621
build_alias=$build_alias
10622
build=$build
10623
build_os=$build_os
10624
10625
# An echo program that does not interpret backslashes.
10626
echo=$lt_echo
10627
10628
# The archiver.
10629
AR=$lt_AR
10630
AR_FLAGS=$lt_AR_FLAGS
10631
10632
# A C compiler.
10633
LTCC=$lt_LTCC
10634
10635
# LTCC compiler flags.
10636
LTCFLAGS=$lt_LTCFLAGS
10637
10638
# A language-specific compiler.
10639
CC=$lt_compiler
10640
10641
# Is the compiler the GNU C compiler?
10642
with_gcc=$GCC
10643
10644
# An ERE matcher.
10645
EGREP=$lt_EGREP
10646
10647
# The linker used to build libraries.
10648
LD=$lt_LD
10649
10650
# Whether we need hard or soft links.
10651
LN_S=$lt_LN_S
10652
10653
# A BSD-compatible nm program.
10654
NM=$lt_NM
10655
10656
# A symbol stripping program
10657
STRIP=$lt_STRIP
10658
10659
# Used to examine libraries when file_magic_cmd begins "file"
10660
MAGIC_CMD=$MAGIC_CMD
10661
10662
# Used on cygwin: DLL creation program.
10663
DLLTOOL="$DLLTOOL"
10664
10665
# Used on cygwin: object dumper.
10666
OBJDUMP="$OBJDUMP"
10667
10668
# Used on cygwin: assembler.
10669
AS="$AS"
10670
10671
# The name of the directory that contains temporary libtool files.
10672
objdir=$objdir
10673
10674
# How to create reloadable object files.
10675
reload_flag=$lt_reload_flag
10676
reload_cmds=$lt_reload_cmds
10677
10678
# How to pass a linker flag through the compiler.
10679
wl=$lt_lt_prog_compiler_wl
10680
10681
# Object file suffix (normally "o").
10682
objext="$ac_objext"
10683
10684
# Old archive suffix (normally "a").
10685
libext="$libext"
10686
10687
# Shared library suffix (normally ".so").
10688
shrext_cmds='$shrext_cmds'
10689
10690
# Executable file suffix (normally "").
10691
exeext="$exeext"
10692
10693
# Additional compiler flags for building library objects.
10694
pic_flag=$lt_lt_prog_compiler_pic
10695
pic_mode=$pic_mode
10696
10697
# What is the maximum length of a command?
10698
max_cmd_len=$lt_cv_sys_max_cmd_len
10699
10700
# Does compiler simultaneously support -c and -o options?
10701
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10702
10703
# Must we lock files when doing compilation?
10704
need_locks=$lt_need_locks
10705
10706
# Do we need the lib prefix for modules?
10707
need_lib_prefix=$need_lib_prefix
10708
10709
# Do we need a version for libraries?
10710
need_version=$need_version
10711
10712
# Whether dlopen is supported.
10713
dlopen_support=$enable_dlopen
10714
10715
# Whether dlopen of programs is supported.
10716
dlopen_self=$enable_dlopen_self
10717
10718
# Whether dlopen of statically linked programs is supported.
10719
dlopen_self_static=$enable_dlopen_self_static
10720
10721
# Compiler flag to prevent dynamic linking.
10722
link_static_flag=$lt_lt_prog_compiler_static
10723
10724
# Compiler flag to turn off builtin functions.
10725
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10726
10727
# Compiler flag to allow reflexive dlopens.
10728
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10729
10730
# Compiler flag to generate shared objects directly from archives.
10731
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10732
10733
# Compiler flag to generate thread-safe objects.
10734
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10735
10736
# Library versioning type.
10737
version_type=$version_type
10738
10739
# Format of library name prefix.
10740
libname_spec=$lt_libname_spec
10741
10742
# List of archive names.  First name is the real one, the rest are links.
10743
# The last name is the one that the linker finds with -lNAME.
10744
library_names_spec=$lt_library_names_spec
10745
10746
# The coded name of the library, if different from the real name.
10747
soname_spec=$lt_soname_spec
10748
10749
# Commands used to build and install an old-style archive.
10750
RANLIB=$lt_RANLIB
10751
old_archive_cmds=$lt_old_archive_cmds
10752
old_postinstall_cmds=$lt_old_postinstall_cmds
10753
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10754
10755
# Create an old-style archive from a shared archive.
10756
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10757
10758
# Create a temporary old-style archive to link instead of a shared archive.
10759
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10760
10761
# Commands used to build and install a shared archive.
10762
archive_cmds=$lt_archive_cmds
10763
archive_expsym_cmds=$lt_archive_expsym_cmds
10764
postinstall_cmds=$lt_postinstall_cmds
10765
postuninstall_cmds=$lt_postuninstall_cmds
10766
10767
# Commands used to build a loadable module (assumed same as above if empty)
10768
module_cmds=$lt_module_cmds
10769
module_expsym_cmds=$lt_module_expsym_cmds
10770
10771
# Commands to strip libraries.
10772
old_striplib=$lt_old_striplib
10773
striplib=$lt_striplib
10774
10775
# Dependencies to place before the objects being linked to create a
10776
# shared library.
10777
predep_objects=$lt_predep_objects
10778
10779
# Dependencies to place after the objects being linked to create a
10780
# shared library.
10781
postdep_objects=$lt_postdep_objects
10782
10783
# Dependencies to place before the objects being linked to create a
10784
# shared library.
10785
predeps=$lt_predeps
10786
10787
# Dependencies to place after the objects being linked to create a
10788
# shared library.
10789
postdeps=$lt_postdeps
10790
10791
# The directories searched by this compiler when creating a shared
10792
# library
10793
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10794
10795
# The library search path used internally by the compiler when linking
10796
# a shared library.
10797
compiler_lib_search_path=$lt_compiler_lib_search_path
10798
10799
# Method to check whether dependent libraries are shared objects.
10800
deplibs_check_method=$lt_deplibs_check_method
10801
10802
# Command to use when deplibs_check_method == file_magic.
10803
file_magic_cmd=$lt_file_magic_cmd
10804
10805
# Flag that allows shared libraries with undefined symbols to be built.
10806
allow_undefined_flag=$lt_allow_undefined_flag
10807
10808
# Flag that forces no undefined symbols.
10809
no_undefined_flag=$lt_no_undefined_flag
10810
10811
# Commands used to finish a libtool library installation in a directory.
10812
finish_cmds=$lt_finish_cmds
10813
10814
# Same as above, but a single script fragment to be evaled but not shown.
10815
finish_eval=$lt_finish_eval
10816
10817
# Take the output of nm and produce a listing of raw symbols and C names.
10818
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10819
10820
# Transform the output of nm in a proper C declaration
10821
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10822
10823
# Transform the output of nm in a C name address pair
10824
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10825
10826
# This is the shared library runtime path variable.
10827
runpath_var=$runpath_var
10828
10829
# This is the shared library path variable.
10830
shlibpath_var=$shlibpath_var
10831
10832
# Is shlibpath searched before the hard-coded library search path?
10833
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10834
10835
# How to hardcode a shared library path into an executable.
10836
hardcode_action=$hardcode_action
10837
10838
# Whether we should hardcode library paths into libraries.
10839
hardcode_into_libs=$hardcode_into_libs
10840
10841
# Flag to hardcode \$libdir into a binary during linking.
10842
# This must work even if \$libdir does not exist.
10843
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10844
10845
# If ld is used when linking, flag to hardcode \$libdir into
10846
# a binary during linking. This must work even if \$libdir does
10847
# not exist.
10848
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10849
10850
# Whether we need a single -rpath flag with a separated argument.
10851
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10852
10853
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10854
# resulting binary.
10855
hardcode_direct=$hardcode_direct
10856
10857
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10858
# resulting binary.
10859
hardcode_minus_L=$hardcode_minus_L
10860
10861
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10862
# the resulting binary.
10863
hardcode_shlibpath_var=$hardcode_shlibpath_var
10864
10865
# Set to yes if building a shared library automatically hardcodes DIR into the library
10866
# and all subsequent libraries and executables linked against it.
10867
hardcode_automatic=$hardcode_automatic
10868
10869
# Variables whose values should be saved in libtool wrapper scripts and
10870
# restored at relink time.
10871
variables_saved_for_relink="$variables_saved_for_relink"
10872
10873
# Whether libtool must link a program against all its dependency libraries.
10874
link_all_deplibs=$link_all_deplibs
10875
10876
# Compile-time system search path for libraries
10877
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10878
10879
# Run-time system search path for libraries
10880
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10881
10882
# Fix the shell variable \$srcfile for the compiler.
10883
fix_srcfile_path=$lt_fix_srcfile_path
10884
10885
# Set to yes if exported symbols are required.
10886
always_export_symbols=$always_export_symbols
10887
10888
# The commands to list exported symbols.
10889
export_symbols_cmds=$lt_export_symbols_cmds
10890
10891
# The commands to extract the exported symbol list from a shared archive.
10892
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10893
10894
# Symbols that should not be listed in the preloaded symbols.
10895
exclude_expsyms=$lt_exclude_expsyms
10896
10897
# Symbols that must always be exported.
10898
include_expsyms=$lt_include_expsyms
10899
10900
# ### END LIBTOOL CONFIG
10901
10902
__EOF__
10903
10904
10905
  case $host_os in
10906
  aix3*)
10907
    cat <<\EOF >> "$cfgfile"
10908
10909
# AIX sometimes has problems with the GCC collect2 program.  For some
10910
# reason, if we set the COLLECT_NAMES environment variable, the problems
10911
# vanish in a puff of smoke.
10912
if test "X${COLLECT_NAMES+set}" != Xset; then
10913
  COLLECT_NAMES=
10914
  export COLLECT_NAMES
10915
fi
10916
EOF
10917
    ;;
10918
  esac
10919
10920
  # We use sed instead of cat because bash on DJGPP gets confused if
10921
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10922
  # text mode, it properly converts lines to CR/LF.  This bash problem
10923
  # is reportedly fixed, but why not run on old versions too?
10924
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10925
10926
  mv -f "$cfgfile" "$ofile" || \
10927
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10928
  chmod +x "$ofile"
10929
10930
else
10931
  # If there is no Makefile yet, we rely on a make rule to execute
10932
  # `config.status --recheck' to rerun these tests and create the
10933
  # libtool script then.
10934
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10935
  if test -f "$ltmain_in"; then
10936
    test -f Makefile && make "$ltmain"
10937
  fi
10938
fi
10939
10940
10941
ac_ext=c
10942
ac_cpp='$CPP $CPPFLAGS'
10943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10946
10947
CC="$lt_save_CC"
10948
10949
10950
# Check whether --with-tags was given.
10951
if test "${with_tags+set}" = set; then
10952
  withval=$with_tags; tagnames="$withval"
10953
fi
10954
10955
10956
if test -f "$ltmain" && test -n "$tagnames"; then
10957
  if test ! -f "${ofile}"; then
10958
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10959
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10960
  fi
10961
10962
  if test -z "$LTCC"; then
10963
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10964
    if test -z "$LTCC"; then
10965
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10966
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10967
    else
10968
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10969
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10970
    fi
10971
  fi
10972
  if test -z "$LTCFLAGS"; then
10973
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10974
  fi
10975
10976
  # Extract list of available tagged configurations in $ofile.
10977
  # Note that this assumes the entire list is on one line.
10978
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10979
10980
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10981
  for tagname in $tagnames; do
10982
    IFS="$lt_save_ifs"
10983
    # Check whether tagname contains only valid characters
10984
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10985
    "") ;;
10986
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10987
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10988
   { (exit 1); exit 1; }; }
10989
	;;
10990
    esac
10991
10992
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10993
    then
10994
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10995
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10996
   { (exit 1); exit 1; }; }
10997
    fi
10998
10999
    # Update the list of available tags.
11000
    if test -n "$tagname"; then
11001
      echo appending configuration tag \"$tagname\" to $ofile
11002
11003
      case $tagname in
11004
      CXX)
11005
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11006
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11007
	    (test "X$CXX" != "Xg++"))) ; then
11008
	  ac_ext=cpp
11009
ac_cpp='$CXXCPP $CPPFLAGS'
11010
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11011
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11012
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11013
11014
11015
11016
11017
archive_cmds_need_lc_CXX=no
11018
allow_undefined_flag_CXX=
11019
always_export_symbols_CXX=no
11020
archive_expsym_cmds_CXX=
11021
export_dynamic_flag_spec_CXX=
11022
hardcode_direct_CXX=no
11023
hardcode_libdir_flag_spec_CXX=
11024
hardcode_libdir_flag_spec_ld_CXX=
11025
hardcode_libdir_separator_CXX=
11026
hardcode_minus_L_CXX=no
11027
hardcode_shlibpath_var_CXX=unsupported
11028
hardcode_automatic_CXX=no
11029
module_cmds_CXX=
11030
module_expsym_cmds_CXX=
11031
link_all_deplibs_CXX=unknown
11032
old_archive_cmds_CXX=$old_archive_cmds
11033
no_undefined_flag_CXX=
11034
whole_archive_flag_spec_CXX=
11035
enable_shared_with_static_runtimes_CXX=no
11036
11037
# Dependencies to place before and after the object being linked:
11038
predep_objects_CXX=
11039
postdep_objects_CXX=
11040
predeps_CXX=
11041
postdeps_CXX=
11042
compiler_lib_search_path_CXX=
11043
compiler_lib_search_dirs_CXX=
11044
11045
# Source file extension for C++ test sources.
11046
ac_ext=cpp
11047
11048
# Object file extension for compiled C++ test sources.
11049
objext=o
11050
objext_CXX=$objext
11051
11052
# Code to be used in simple compile tests
11053
lt_simple_compile_test_code="int some_variable = 0;"
11054
11055
# Code to be used in simple link tests
11056
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11057
11058
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11059
11060
# If no C compiler was specified, use CC.
11061
LTCC=${LTCC-"$CC"}
11062
11063
# If no C compiler flags were specified, use CFLAGS.
11064
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11065
11066
# Allow CC to be a program name with arguments.
11067
compiler=$CC
11068
11069
11070
# save warnings/boilerplate of simple test code
11071
ac_outfile=conftest.$ac_objext
11072
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11073
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11074
_lt_compiler_boilerplate=`cat conftest.err`
11075
$rm conftest*
11076
11077
ac_outfile=conftest.$ac_objext
11078
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11079
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11080
_lt_linker_boilerplate=`cat conftest.err`
11081
$rm -r conftest*
11082
11083
11084
# Allow CC to be a program name with arguments.
11085
lt_save_CC=$CC
11086
lt_save_LD=$LD
11087
lt_save_GCC=$GCC
11088
GCC=$GXX
11089
lt_save_with_gnu_ld=$with_gnu_ld
11090
lt_save_path_LD=$lt_cv_path_LD
11091
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11092
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11093
else
11094
  $as_unset lt_cv_prog_gnu_ld
11095
fi
11096
if test -n "${lt_cv_path_LDCXX+set}"; then
11097
  lt_cv_path_LD=$lt_cv_path_LDCXX
11098
else
11099
  $as_unset lt_cv_path_LD
11100
fi
11101
test -z "${LDCXX+set}" || LD=$LDCXX
11102
CC=${CXX-"c++"}
11103
compiler=$CC
11104
compiler_CXX=$CC
11105
for cc_temp in $compiler""; do
11106
  case $cc_temp in
11107
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11108
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11109
    \-*) ;;
11110
    *) break;;
11111
  esac
11112
done
11113
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11114
11115
11116
# We don't want -fno-exception wen compiling C++ code, so set the
11117
# no_builtin_flag separately
11118
if test "$GXX" = yes; then
11119
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11120
else
11121
  lt_prog_compiler_no_builtin_flag_CXX=
11122
fi
11123
11124
if test "$GXX" = yes; then
11125
  # Set up default GNU C++ configuration
11126
11127
11128
# Check whether --with-gnu-ld was given.
11129
if test "${with_gnu_ld+set}" = set; then
11130
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11131
else
11132
  with_gnu_ld=no
11133
fi
11134
11135
ac_prog=ld
11136
if test "$GCC" = yes; then
11137
  # Check if gcc -print-prog-name=ld gives a path.
11138
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11139
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11140
  case $host in
11141
  *-*-mingw*)
11142
    # gcc leaves a trailing carriage return which upsets mingw
11143
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144
  *)
11145
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11146
  esac
11147
  case $ac_prog in
11148
    # Accept absolute paths.
11149
    [\\/]* | ?:[\\/]*)
11150
      re_direlt='/[^/][^/]*/\.\./'
11151
      # Canonicalize the pathname of ld
11152
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11153
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11154
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11155
      done
11156
      test -z "$LD" && LD="$ac_prog"
11157
      ;;
11158
  "")
11159
    # If it fails, then pretend we aren't using GCC.
11160
    ac_prog=ld
11161
    ;;
11162
  *)
11163
    # If it is relative, then search for the first ld in PATH.
11164
    with_gnu_ld=unknown
11165
    ;;
11166
  esac
11167
elif test "$with_gnu_ld" = yes; then
11168
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11169
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11170
else
11171
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11172
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11173
fi
11174
if test "${lt_cv_path_LD+set}" = set; then
11175
  echo $ECHO_N "(cached) $ECHO_C" >&6
11176
else
11177
  if test -z "$LD"; then
11178
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11179
  for ac_dir in $PATH; do
11180
    IFS="$lt_save_ifs"
11181
    test -z "$ac_dir" && ac_dir=.
11182
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11183
      lt_cv_path_LD="$ac_dir/$ac_prog"
11184
      # Check to see if the program is GNU ld.  I'd rather use --version,
11185
      # but apparently some variants of GNU ld only accept -v.
11186
      # Break only if it was the GNU/non-GNU ld that we prefer.
11187
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11188
      *GNU* | *'with BFD'*)
11189
	test "$with_gnu_ld" != no && break
11190
	;;
11191
      *)
11192
	test "$with_gnu_ld" != yes && break
11193
	;;
11194
      esac
11195
    fi
11196
  done
11197
  IFS="$lt_save_ifs"
11198
else
11199
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11200
fi
11201
fi
11202
11203
LD="$lt_cv_path_LD"
11204
if test -n "$LD"; then
11205
  { echo "$as_me:$LINENO: result: $LD" >&5
11206
echo "${ECHO_T}$LD" >&6; }
11207
else
11208
  { echo "$as_me:$LINENO: result: no" >&5
11209
echo "${ECHO_T}no" >&6; }
11210
fi
11211
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11212
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11213
   { (exit 1); exit 1; }; }
11214
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11215
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11216
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11217
  echo $ECHO_N "(cached) $ECHO_C" >&6
11218
else
11219
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11220
case `$LD -v 2>&1 </dev/null` in
11221
*GNU* | *'with BFD'*)
11222
  lt_cv_prog_gnu_ld=yes
11223
  ;;
11224
*)
11225
  lt_cv_prog_gnu_ld=no
11226
  ;;
11227
esac
11228
fi
11229
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11230
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11231
with_gnu_ld=$lt_cv_prog_gnu_ld
11232
11233
11234
11235
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11236
  # archiving commands below assume that GNU ld is being used.
11237
  if test "$with_gnu_ld" = yes; then
11238
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11239
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11240
11241
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11242
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11243
11244
    # If archive_cmds runs LD, not CC, wlarc should be empty
11245
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11246
    #     investigate it a little bit more. (MM)
11247
    wlarc='${wl}'
11248
11249
    # ancient GNU ld didn't support --whole-archive et. al.
11250
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11251
	grep 'no-whole-archive' > /dev/null; then
11252
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11253
    else
11254
      whole_archive_flag_spec_CXX=
11255
    fi
11256
  else
11257
    with_gnu_ld=no
11258
    wlarc=
11259
11260
    # A generic and very simple default shared library creation
11261
    # command for GNU C++ for the case where it uses the native
11262
    # linker, instead of GNU ld.  If possible, this setting should
11263
    # overridden to take advantage of the native linker features on
11264
    # the platform it is being used on.
11265
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11266
  fi
11267
11268
  # Commands to make compiler produce verbose output that lists
11269
  # what "hidden" libraries, object files and flags are used when
11270
  # linking a shared library.
11271
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11272
11273
else
11274
  GXX=no
11275
  with_gnu_ld=no
11276
  wlarc=
11277
fi
11278
11279
# PORTME: fill in a description of your system's C++ link characteristics
11280
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11281
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11282
ld_shlibs_CXX=yes
11283
case $host_os in
11284
  aix3*)
11285
    # FIXME: insert proper C++ library support
11286
    ld_shlibs_CXX=no
11287
    ;;
11288
  aix[4-9]*)
11289
    if test "$host_cpu" = ia64; then
11290
      # On IA64, the linker does run time linking by default, so we don't
11291
      # have to do anything special.
11292
      aix_use_runtimelinking=no
11293
      exp_sym_flag='-Bexport'
11294
      no_entry_flag=""
11295
    else
11296
      aix_use_runtimelinking=no
11297
11298
      # Test if we are trying to use run time linking or normal
11299
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300
      # need to do runtime linking.
11301
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11302
	for ld_flag in $LDFLAGS; do
11303
	  case $ld_flag in
11304
	  *-brtl*)
11305
	    aix_use_runtimelinking=yes
11306
	    break
11307
	    ;;
11308
	  esac
11309
	done
11310
	;;
11311
      esac
11312
11313
      exp_sym_flag='-bexport'
11314
      no_entry_flag='-bnoentry'
11315
    fi
11316
11317
    # When large executables or shared objects are built, AIX ld can
11318
    # have problems creating the table of contents.  If linking a library
11319
    # or program results in "error TOC overflow" add -mminimal-toc to
11320
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11321
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11322
11323
    archive_cmds_CXX=''
11324
    hardcode_direct_CXX=yes
11325
    hardcode_libdir_separator_CXX=':'
11326
    link_all_deplibs_CXX=yes
11327
11328
    if test "$GXX" = yes; then
11329
      case $host_os in aix4.[012]|aix4.[012].*)
11330
      # We only want to do this on AIX 4.2 and lower, the check
11331
      # below for broken collect2 doesn't work under 4.3+
11332
	collect2name=`${CC} -print-prog-name=collect2`
11333
	if test -f "$collect2name" && \
11334
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11335
	then
11336
	  # We have reworked collect2
11337
	  :
11338
	else
11339
	  # We have old collect2
11340
	  hardcode_direct_CXX=unsupported
11341
	  # It fails to find uninstalled libraries when the uninstalled
11342
	  # path is not listed in the libpath.  Setting hardcode_minus_L
11343
	  # to unsupported forces relinking
11344
	  hardcode_minus_L_CXX=yes
11345
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11346
	  hardcode_libdir_separator_CXX=
11347
	fi
11348
	;;
11349
      esac
11350
      shared_flag='-shared'
11351
      if test "$aix_use_runtimelinking" = yes; then
11352
	shared_flag="$shared_flag "'${wl}-G'
11353
      fi
11354
    else
11355
      # not using gcc
11356
      if test "$host_cpu" = ia64; then
11357
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11358
	# chokes on -Wl,-G. The following line is correct:
11359
	shared_flag='-G'
11360
      else
11361
	if test "$aix_use_runtimelinking" = yes; then
11362
	  shared_flag='${wl}-G'
11363
	else
11364
	  shared_flag='${wl}-bM:SRE'
11365
	fi
11366
      fi
11367
    fi
11368
11369
    # It seems that -bexpall does not export symbols beginning with
11370
    # underscore (_), so it is better to generate a list of symbols to export.
11371
    always_export_symbols_CXX=yes
11372
    if test "$aix_use_runtimelinking" = yes; then
11373
      # Warning - without using the other runtime loading flags (-brtl),
11374
      # -berok will link without error, but may produce a broken library.
11375
      allow_undefined_flag_CXX='-berok'
11376
      # Determine the default libpath from the value encoded in an empty executable.
11377
      cat >conftest.$ac_ext <<_ACEOF
11378
/* confdefs.h.  */
11379
_ACEOF
11380
cat confdefs.h >>conftest.$ac_ext
11381
cat >>conftest.$ac_ext <<_ACEOF
11382
/* end confdefs.h.  */
11383
11384
int
11385
main ()
11386
{
11387
11388
  ;
11389
  return 0;
11390
}
11391
_ACEOF
11392
rm -f conftest.$ac_objext conftest$ac_exeext
11393
if { (ac_try="$ac_link"
11394
case "(($ac_try" in
11395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396
  *) ac_try_echo=$ac_try;;
11397
esac
11398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399
  (eval "$ac_link") 2>conftest.er1
11400
  ac_status=$?
11401
  grep -v '^ *+' conftest.er1 >conftest.err
11402
  rm -f conftest.er1
11403
  cat conftest.err >&5
11404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405
  (exit $ac_status); } && {
11406
	 test -z "$ac_cxx_werror_flag" ||
11407
	 test ! -s conftest.err
11408
       } && test -s conftest$ac_exeext &&
11409
       $as_test_x conftest$ac_exeext; then
11410
11411
lt_aix_libpath_sed='
11412
    /Import File Strings/,/^$/ {
11413
	/^0/ {
11414
	    s/^0  *\(.*\)$/\1/
11415
	    p
11416
	}
11417
    }'
11418
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11419
# Check for a 64-bit object if we didn't find anything.
11420
if test -z "$aix_libpath"; then
11421
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11422
fi
11423
else
11424
  echo "$as_me: failed program was:" >&5
11425
sed 's/^/| /' conftest.$ac_ext >&5
11426
11427
11428
fi
11429
11430
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431
      conftest$ac_exeext conftest.$ac_ext
11432
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11433
11434
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11435
11436
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11437
     else
11438
      if test "$host_cpu" = ia64; then
11439
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11440
	allow_undefined_flag_CXX="-z nodefs"
11441
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11442
      else
11443
	# Determine the default libpath from the value encoded in an empty executable.
11444
	cat >conftest.$ac_ext <<_ACEOF
11445
/* confdefs.h.  */
11446
_ACEOF
11447
cat confdefs.h >>conftest.$ac_ext
11448
cat >>conftest.$ac_ext <<_ACEOF
11449
/* end confdefs.h.  */
11450
11451
int
11452
main ()
11453
{
11454
11455
  ;
11456
  return 0;
11457
}
11458
_ACEOF
11459
rm -f conftest.$ac_objext conftest$ac_exeext
11460
if { (ac_try="$ac_link"
11461
case "(($ac_try" in
11462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463
  *) ac_try_echo=$ac_try;;
11464
esac
11465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466
  (eval "$ac_link") 2>conftest.er1
11467
  ac_status=$?
11468
  grep -v '^ *+' conftest.er1 >conftest.err
11469
  rm -f conftest.er1
11470
  cat conftest.err >&5
11471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472
  (exit $ac_status); } && {
11473
	 test -z "$ac_cxx_werror_flag" ||
11474
	 test ! -s conftest.err
11475
       } && test -s conftest$ac_exeext &&
11476
       $as_test_x conftest$ac_exeext; then
11477
11478
lt_aix_libpath_sed='
11479
    /Import File Strings/,/^$/ {
11480
	/^0/ {
11481
	    s/^0  *\(.*\)$/\1/
11482
	    p
11483
	}
11484
    }'
11485
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11486
# Check for a 64-bit object if we didn't find anything.
11487
if test -z "$aix_libpath"; then
11488
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11489
fi
11490
else
11491
  echo "$as_me: failed program was:" >&5
11492
sed 's/^/| /' conftest.$ac_ext >&5
11493
11494
11495
fi
11496
11497
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11498
      conftest$ac_exeext conftest.$ac_ext
11499
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11500
11501
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11502
	# Warning - without using the other run time loading flags,
11503
	# -berok will link without error, but may produce a broken library.
11504
	no_undefined_flag_CXX=' ${wl}-bernotok'
11505
	allow_undefined_flag_CXX=' ${wl}-berok'
11506
	# Exported symbols can be pulled into shared objects from archives
11507
	whole_archive_flag_spec_CXX='$convenience'
11508
	archive_cmds_need_lc_CXX=yes
11509
	# This is similar to how AIX traditionally builds its shared libraries.
11510
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11511
      fi
11512
    fi
11513
    ;;
11514
11515
  beos*)
11516
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11517
      allow_undefined_flag_CXX=unsupported
11518
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11519
      # support --undefined.  This deserves some investigation.  FIXME
11520
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521
    else
11522
      ld_shlibs_CXX=no
11523
    fi
11524
    ;;
11525
11526
  chorus*)
11527
    case $cc_basename in
11528
      *)
11529
	# FIXME: insert proper C++ library support
11530
	ld_shlibs_CXX=no
11531
	;;
11532
    esac
11533
    ;;
11534
11535
  cygwin* | mingw* | pw32*)
11536
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11537
    # as there is no search path for DLLs.
11538
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11539
    allow_undefined_flag_CXX=unsupported
11540
    always_export_symbols_CXX=no
11541
    enable_shared_with_static_runtimes_CXX=yes
11542
11543
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11544
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11545
      # If the export-symbols file already is a .def file (1st line
11546
      # is EXPORTS), use it as is; otherwise, prepend...
11547
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11548
	cp $export_symbols $output_objdir/$soname.def;
11549
      else
11550
	echo EXPORTS > $output_objdir/$soname.def;
11551
	cat $export_symbols >> $output_objdir/$soname.def;
11552
      fi~
11553
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11554
    else
11555
      ld_shlibs_CXX=no
11556
    fi
11557
  ;;
11558
      darwin* | rhapsody*)
11559
      archive_cmds_need_lc_CXX=no
11560
      hardcode_direct_CXX=no
11561
      hardcode_automatic_CXX=yes
11562
      hardcode_shlibpath_var_CXX=unsupported
11563
      whole_archive_flag_spec_CXX=''
11564
      link_all_deplibs_CXX=yes
11565
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11566
      if test "$GXX" = yes ; then
11567
      output_verbose_link_cmd='echo'
11568
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11569
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11570
      archive_expsym_cmds_CXX="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}"
11571
      module_expsym_cmds_CXX="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}"
11572
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11573
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11574
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11575
      fi
11576
      else
11577
      case $cc_basename in
11578
        xlc*)
11579
         output_verbose_link_cmd='echo'
11580
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11581
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11582
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11583
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11584
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11585
          ;;
11586
       *)
11587
         ld_shlibs_CXX=no
11588
          ;;
11589
      esac
11590
      fi
11591
        ;;
11592
11593
  dgux*)
11594
    case $cc_basename in
11595
      ec++*)
11596
	# FIXME: insert proper C++ library support
11597
	ld_shlibs_CXX=no
11598
	;;
11599
      ghcx*)
11600
	# Green Hills C++ Compiler
11601
	# FIXME: insert proper C++ library support
11602
	ld_shlibs_CXX=no
11603
	;;
11604
      *)
11605
	# FIXME: insert proper C++ library support
11606
	ld_shlibs_CXX=no
11607
	;;
11608
    esac
11609
    ;;
11610
  freebsd[12]*)
11611
    # C++ shared libraries reported to be fairly broken before switch to ELF
11612
    ld_shlibs_CXX=no
11613
    ;;
11614
  freebsd-elf*)
11615
    archive_cmds_need_lc_CXX=no
11616
    ;;
11617
  freebsd* | dragonfly*)
11618
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11619
    # conventions
11620
    ld_shlibs_CXX=yes
11621
    ;;
11622
  gnu*)
11623
    ;;
11624
  hpux9*)
11625
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11626
    hardcode_libdir_separator_CXX=:
11627
    export_dynamic_flag_spec_CXX='${wl}-E'
11628
    hardcode_direct_CXX=yes
11629
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11630
				# but as the default
11631
				# location of the library.
11632
11633
    case $cc_basename in
11634
    CC*)
11635
      # FIXME: insert proper C++ library support
11636
      ld_shlibs_CXX=no
11637
      ;;
11638
    aCC*)
11639
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11640
      # Commands to make compiler produce verbose output that lists
11641
      # what "hidden" libraries, object files and flags are used when
11642
      # linking a shared library.
11643
      #
11644
      # There doesn't appear to be a way to prevent this compiler from
11645
      # explicitly linking system object files so we need to strip them
11646
      # from the output so that they don't get included in the library
11647
      # dependencies.
11648
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11649
      ;;
11650
    *)
11651
      if test "$GXX" = yes; then
11652
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11653
      else
11654
        # FIXME: insert proper C++ library support
11655
        ld_shlibs_CXX=no
11656
      fi
11657
      ;;
11658
    esac
11659
    ;;
11660
  hpux10*|hpux11*)
11661
    if test $with_gnu_ld = no; then
11662
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11663
      hardcode_libdir_separator_CXX=:
11664
11665
      case $host_cpu in
11666
      hppa*64*|ia64*) ;;
11667
      *)
11668
	export_dynamic_flag_spec_CXX='${wl}-E'
11669
        ;;
11670
      esac
11671
    fi
11672
    case $host_cpu in
11673
    hppa*64*|ia64*)
11674
      hardcode_direct_CXX=no
11675
      hardcode_shlibpath_var_CXX=no
11676
      ;;
11677
    *)
11678
      hardcode_direct_CXX=yes
11679
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11680
					      # but as the default
11681
					      # location of the library.
11682
      ;;
11683
    esac
11684
11685
    case $cc_basename in
11686
      CC*)
11687
	# FIXME: insert proper C++ library support
11688
	ld_shlibs_CXX=no
11689
	;;
11690
      aCC*)
11691
	case $host_cpu in
11692
	hppa*64*)
11693
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694
	  ;;
11695
	ia64*)
11696
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697
	  ;;
11698
	*)
11699
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700
	  ;;
11701
	esac
11702
	# Commands to make compiler produce verbose output that lists
11703
	# what "hidden" libraries, object files and flags are used when
11704
	# linking a shared library.
11705
	#
11706
	# There doesn't appear to be a way to prevent this compiler from
11707
	# explicitly linking system object files so we need to strip them
11708
	# from the output so that they don't get included in the library
11709
	# dependencies.
11710
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11711
	;;
11712
      *)
11713
	if test "$GXX" = yes; then
11714
	  if test $with_gnu_ld = no; then
11715
	    case $host_cpu in
11716
	    hppa*64*)
11717
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718
	      ;;
11719
	    ia64*)
11720
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721
	      ;;
11722
	    *)
11723
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724
	      ;;
11725
	    esac
11726
	  fi
11727
	else
11728
	  # FIXME: insert proper C++ library support
11729
	  ld_shlibs_CXX=no
11730
	fi
11731
	;;
11732
    esac
11733
    ;;
11734
  interix[3-9]*)
11735
    hardcode_direct_CXX=no
11736
    hardcode_shlibpath_var_CXX=no
11737
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738
    export_dynamic_flag_spec_CXX='${wl}-E'
11739
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11741
    # default) and relocated if they conflict, which is a slow very memory
11742
    # consuming and fragmenting process.  To avoid this, we pick a random,
11743
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11745
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11746
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11747
    ;;
11748
  irix5* | irix6*)
11749
    case $cc_basename in
11750
      CC*)
11751
	# SGI C++
11752
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11753
11754
	# Archives containing C++ object files must be created using
11755
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11756
	# necessary to make sure instantiated templates are included
11757
	# in the archive.
11758
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11759
	;;
11760
      *)
11761
	if test "$GXX" = yes; then
11762
	  if test "$with_gnu_ld" = no; then
11763
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11764
	  else
11765
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11766
	  fi
11767
	fi
11768
	link_all_deplibs_CXX=yes
11769
	;;
11770
    esac
11771
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772
    hardcode_libdir_separator_CXX=:
11773
    ;;
11774
  linux* | k*bsd*-gnu)
11775
    case $cc_basename in
11776
      KCC*)
11777
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11778
11779
	# KCC will only create a shared library if the output file
11780
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11781
	# to its proper name (with version) after linking.
11782
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11783
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11784
	# Commands to make compiler produce verbose output that lists
11785
	# what "hidden" libraries, object files and flags are used when
11786
	# linking a shared library.
11787
	#
11788
	# There doesn't appear to be a way to prevent this compiler from
11789
	# explicitly linking system object files so we need to strip them
11790
	# from the output so that they don't get included in the library
11791
	# dependencies.
11792
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11793
11794
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11795
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796
11797
	# Archives containing C++ object files must be created using
11798
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11800
	;;
11801
      icpc*)
11802
	# Intel C++
11803
	with_gnu_ld=yes
11804
	# version 8.0 and above of icpc choke on multiply defined symbols
11805
	# if we add $predep_objects and $postdep_objects, however 7.1 and
11806
	# earlier do not add the objects themselves.
11807
	case `$CC -V 2>&1` in
11808
	*"Version 7."*)
11809
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11811
	  ;;
11812
	*)  # Version 8.0 or newer
11813
	  tmp_idyn=
11814
	  case $host_cpu in
11815
	    ia64*) tmp_idyn=' -i_dynamic';;
11816
	  esac
11817
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11819
	  ;;
11820
	esac
11821
	archive_cmds_need_lc_CXX=no
11822
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11823
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11825
	;;
11826
      pgCC* | pgcpp*)
11827
        # Portland Group C++ compiler
11828
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11829
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11830
11831
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11832
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11833
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11834
        ;;
11835
      cxx*)
11836
	# Compaq C++
11837
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11839
11840
	runpath_var=LD_RUN_PATH
11841
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11842
	hardcode_libdir_separator_CXX=:
11843
11844
	# Commands to make compiler produce verbose output that lists
11845
	# what "hidden" libraries, object files and flags are used when
11846
	# linking a shared library.
11847
	#
11848
	# There doesn't appear to be a way to prevent this compiler from
11849
	# explicitly linking system object files so we need to strip them
11850
	# from the output so that they don't get included in the library
11851
	# dependencies.
11852
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11853
	;;
11854
      *)
11855
	case `$CC -V 2>&1 | sed 5q` in
11856
	*Sun\ C*)
11857
	  # Sun C++ 5.9
11858
	  no_undefined_flag_CXX=' -zdefs'
11859
	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860
	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11861
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11862
	  whole_archive_flag_spec_CXX='${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'
11863
11864
	  # Not sure whether something based on
11865
	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11866
	  # would be better.
11867
	  output_verbose_link_cmd='echo'
11868
11869
	  # Archives containing C++ object files must be created using
11870
	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11871
	  # necessary to make sure instantiated templates are included
11872
	  # in the archive.
11873
	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11874
	  ;;
11875
	esac
11876
	;;
11877
    esac
11878
    ;;
11879
  lynxos*)
11880
    # FIXME: insert proper C++ library support
11881
    ld_shlibs_CXX=no
11882
    ;;
11883
  m88k*)
11884
    # FIXME: insert proper C++ library support
11885
    ld_shlibs_CXX=no
11886
    ;;
11887
  mvs*)
11888
    case $cc_basename in
11889
      cxx*)
11890
	# FIXME: insert proper C++ library support
11891
	ld_shlibs_CXX=no
11892
	;;
11893
      *)
11894
	# FIXME: insert proper C++ library support
11895
	ld_shlibs_CXX=no
11896
	;;
11897
    esac
11898
    ;;
11899
  netbsd* | netbsdelf*-gnu)
11900
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11901
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11902
      wlarc=
11903
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11904
      hardcode_direct_CXX=yes
11905
      hardcode_shlibpath_var_CXX=no
11906
    fi
11907
    # Workaround some broken pre-1.5 toolchains
11908
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11909
    ;;
11910
  openbsd2*)
11911
    # C++ shared libraries are fairly broken
11912
    ld_shlibs_CXX=no
11913
    ;;
11914
  openbsd*)
11915
    if test -f /usr/libexec/ld.so; then
11916
      hardcode_direct_CXX=yes
11917
      hardcode_shlibpath_var_CXX=no
11918
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11919
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11920
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921
	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11922
	export_dynamic_flag_spec_CXX='${wl}-E'
11923
	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11924
      fi
11925
      output_verbose_link_cmd='echo'
11926
    else
11927
      ld_shlibs_CXX=no
11928
    fi
11929
    ;;
11930
  osf3*)
11931
    case $cc_basename in
11932
      KCC*)
11933
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11934
11935
	# KCC will only create a shared library if the output file
11936
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11937
	# to its proper name (with version) after linking.
11938
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11939
11940
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11941
	hardcode_libdir_separator_CXX=:
11942
11943
	# Archives containing C++ object files must be created using
11944
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11945
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11946
11947
	;;
11948
      RCC*)
11949
	# Rational C++ 2.4.1
11950
	# FIXME: insert proper C++ library support
11951
	ld_shlibs_CXX=no
11952
	;;
11953
      cxx*)
11954
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11955
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11956
11957
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11958
	hardcode_libdir_separator_CXX=:
11959
11960
	# Commands to make compiler produce verbose output that lists
11961
	# what "hidden" libraries, object files and flags are used when
11962
	# linking a shared library.
11963
	#
11964
	# There doesn't appear to be a way to prevent this compiler from
11965
	# explicitly linking system object files so we need to strip them
11966
	# from the output so that they don't get included in the library
11967
	# dependencies.
11968
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11969
	;;
11970
      *)
11971
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11972
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11973
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11974
11975
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11976
	  hardcode_libdir_separator_CXX=:
11977
11978
	  # Commands to make compiler produce verbose output that lists
11979
	  # what "hidden" libraries, object files and flags are used when
11980
	  # linking a shared library.
11981
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11982
11983
	else
11984
	  # FIXME: insert proper C++ library support
11985
	  ld_shlibs_CXX=no
11986
	fi
11987
	;;
11988
    esac
11989
    ;;
11990
  osf4* | osf5*)
11991
    case $cc_basename in
11992
      KCC*)
11993
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11994
11995
	# KCC will only create a shared library if the output file
11996
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11997
	# to its proper name (with version) after linking.
11998
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11999
12000
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12001
	hardcode_libdir_separator_CXX=:
12002
12003
	# Archives containing C++ object files must be created using
12004
	# the KAI C++ compiler.
12005
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12006
	;;
12007
      RCC*)
12008
	# Rational C++ 2.4.1
12009
	# FIXME: insert proper C++ library support
12010
	ld_shlibs_CXX=no
12011
	;;
12012
      cxx*)
12013
	allow_undefined_flag_CXX=' -expect_unresolved \*'
12014
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12015
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12016
	  echo "-hidden">> $lib.exp~
12017
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12018
	  $rm $lib.exp'
12019
12020
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12021
	hardcode_libdir_separator_CXX=:
12022
12023
	# Commands to make compiler produce verbose output that lists
12024
	# what "hidden" libraries, object files and flags are used when
12025
	# linking a shared library.
12026
	#
12027
	# There doesn't appear to be a way to prevent this compiler from
12028
	# explicitly linking system object files so we need to strip them
12029
	# from the output so that they don't get included in the library
12030
	# dependencies.
12031
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12032
	;;
12033
      *)
12034
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12035
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12036
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12037
12038
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12039
	  hardcode_libdir_separator_CXX=:
12040
12041
	  # Commands to make compiler produce verbose output that lists
12042
	  # what "hidden" libraries, object files and flags are used when
12043
	  # linking a shared library.
12044
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12045
12046
	else
12047
	  # FIXME: insert proper C++ library support
12048
	  ld_shlibs_CXX=no
12049
	fi
12050
	;;
12051
    esac
12052
    ;;
12053
  psos*)
12054
    # FIXME: insert proper C++ library support
12055
    ld_shlibs_CXX=no
12056
    ;;
12057
  sunos4*)
12058
    case $cc_basename in
12059
      CC*)
12060
	# Sun C++ 4.x
12061
	# FIXME: insert proper C++ library support
12062
	ld_shlibs_CXX=no
12063
	;;
12064
      lcc*)
12065
	# Lucid
12066
	# FIXME: insert proper C++ library support
12067
	ld_shlibs_CXX=no
12068
	;;
12069
      *)
12070
	# FIXME: insert proper C++ library support
12071
	ld_shlibs_CXX=no
12072
	;;
12073
    esac
12074
    ;;
12075
  solaris*)
12076
    case $cc_basename in
12077
      CC*)
12078
	# Sun C++ 4.2, 5.x and Centerline C++
12079
        archive_cmds_need_lc_CXX=yes
12080
	no_undefined_flag_CXX=' -zdefs'
12081
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12083
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12084
12085
	hardcode_libdir_flag_spec_CXX='-R$libdir'
12086
	hardcode_shlibpath_var_CXX=no
12087
	case $host_os in
12088
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12089
	  *)
12090
	    # The compiler driver will combine and reorder linker options,
12091
	    # but understands `-z linker_flag'.
12092
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12093
	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12094
	    ;;
12095
	esac
12096
	link_all_deplibs_CXX=yes
12097
12098
	output_verbose_link_cmd='echo'
12099
12100
	# Archives containing C++ object files must be created using
12101
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12102
	# necessary to make sure instantiated templates are included
12103
	# in the archive.
12104
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12105
	;;
12106
      gcx*)
12107
	# Green Hills C++ Compiler
12108
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109
12110
	# The C++ compiler must be used to create the archive.
12111
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12112
	;;
12113
      *)
12114
	# GNU C++ compiler with Solaris linker
12115
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12116
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12117
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12118
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12119
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12120
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12121
12122
	    # Commands to make compiler produce verbose output that lists
12123
	    # what "hidden" libraries, object files and flags are used when
12124
	    # linking a shared library.
12125
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12126
	  else
12127
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12128
	    # platform.
12129
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12132
12133
	    # Commands to make compiler produce verbose output that lists
12134
	    # what "hidden" libraries, object files and flags are used when
12135
	    # linking a shared library.
12136
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137
	  fi
12138
12139
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12140
	  case $host_os in
12141
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12142
	  *)
12143
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12144
	    ;;
12145
	  esac
12146
	fi
12147
	;;
12148
    esac
12149
    ;;
12150
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12151
    no_undefined_flag_CXX='${wl}-z,text'
12152
    archive_cmds_need_lc_CXX=no
12153
    hardcode_shlibpath_var_CXX=no
12154
    runpath_var='LD_RUN_PATH'
12155
12156
    case $cc_basename in
12157
      CC*)
12158
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12160
	;;
12161
      *)
12162
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164
	;;
12165
    esac
12166
    ;;
12167
  sysv5* | sco3.2v5* | sco5v6*)
12168
    # Note: We can NOT use -z defs as we might desire, because we do not
12169
    # link with -lc, and that would cause any symbols used from libc to
12170
    # always be unresolved, which means just about no library would
12171
    # ever link correctly.  If we're not using GNU ld we use -z text
12172
    # though, which does catch some bad symbols but isn't as heavy-handed
12173
    # as -z defs.
12174
    # For security reasons, it is highly recommended that you always
12175
    # use absolute paths for naming shared libraries, and exclude the
12176
    # DT_RUNPATH tag from executables and libraries.  But doing so
12177
    # requires that you compile everything twice, which is a pain.
12178
    # So that behaviour is only enabled if SCOABSPATH is set to a
12179
    # non-empty value in the environment.  Most likely only useful for
12180
    # creating official distributions of packages.
12181
    # This is a hack until libtool officially supports absolute path
12182
    # names for shared libraries.
12183
    no_undefined_flag_CXX='${wl}-z,text'
12184
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12185
    archive_cmds_need_lc_CXX=no
12186
    hardcode_shlibpath_var_CXX=no
12187
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12188
    hardcode_libdir_separator_CXX=':'
12189
    link_all_deplibs_CXX=yes
12190
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12191
    runpath_var='LD_RUN_PATH'
12192
12193
    case $cc_basename in
12194
      CC*)
12195
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197
	;;
12198
      *)
12199
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12201
	;;
12202
    esac
12203
    ;;
12204
  tandem*)
12205
    case $cc_basename in
12206
      NCC*)
12207
	# NonStop-UX NCC 3.20
12208
	# FIXME: insert proper C++ library support
12209
	ld_shlibs_CXX=no
12210
	;;
12211
      *)
12212
	# FIXME: insert proper C++ library support
12213
	ld_shlibs_CXX=no
12214
	;;
12215
    esac
12216
    ;;
12217
  vxworks*)
12218
    # FIXME: insert proper C++ library support
12219
    ld_shlibs_CXX=no
12220
    ;;
12221
  *)
12222
    # FIXME: insert proper C++ library support
12223
    ld_shlibs_CXX=no
12224
    ;;
12225
esac
12226
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12227
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12228
test "$ld_shlibs_CXX" = no && can_build_shared=no
12229
12230
GCC_CXX="$GXX"
12231
LD_CXX="$LD"
12232
12233
cat > conftest.$ac_ext <<EOF
12234
class Foo
12235
{
12236
public:
12237
  Foo (void) { a = 0; }
12238
private:
12239
  int a;
12240
};
12241
EOF
12242
12243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244
  (eval $ac_compile) 2>&5
12245
  ac_status=$?
12246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247
  (exit $ac_status); }; then
12248
  # Parse the compiler output and extract the necessary
12249
  # objects, libraries and library flags.
12250
12251
  # Sentinel used to keep track of whether or not we are before
12252
  # the conftest object file.
12253
  pre_test_object_deps_done=no
12254
12255
  # The `*' in the case matches for architectures that use `case' in
12256
  # $output_verbose_cmd can trigger glob expansion during the loop
12257
  # eval without this substitution.
12258
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12259
12260
  for p in `eval $output_verbose_link_cmd`; do
12261
    case $p in
12262
12263
    -L* | -R* | -l*)
12264
       # Some compilers place space between "-{L,R}" and the path.
12265
       # Remove the space.
12266
       if test $p = "-L" \
12267
	  || test $p = "-R"; then
12268
	 prev=$p
12269
	 continue
12270
       else
12271
	 prev=
12272
       fi
12273
12274
       if test "$pre_test_object_deps_done" = no; then
12275
	 case $p in
12276
	 -L* | -R*)
12277
	   # Internal compiler library paths should come after those
12278
	   # provided the user.  The postdeps already come after the
12279
	   # user supplied libs so there is no need to process them.
12280
	   if test -z "$compiler_lib_search_path_CXX"; then
12281
	     compiler_lib_search_path_CXX="${prev}${p}"
12282
	   else
12283
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12284
	   fi
12285
	   ;;
12286
	 # The "-l" case would never come before the object being
12287
	 # linked, so don't bother handling this case.
12288
	 esac
12289
       else
12290
	 if test -z "$postdeps_CXX"; then
12291
	   postdeps_CXX="${prev}${p}"
12292
	 else
12293
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12294
	 fi
12295
       fi
12296
       ;;
12297
12298
    *.$objext)
12299
       # This assumes that the test object file only shows up
12300
       # once in the compiler output.
12301
       if test "$p" = "conftest.$objext"; then
12302
	 pre_test_object_deps_done=yes
12303
	 continue
12304
       fi
12305
12306
       if test "$pre_test_object_deps_done" = no; then
12307
	 if test -z "$predep_objects_CXX"; then
12308
	   predep_objects_CXX="$p"
12309
	 else
12310
	   predep_objects_CXX="$predep_objects_CXX $p"
12311
	 fi
12312
       else
12313
	 if test -z "$postdep_objects_CXX"; then
12314
	   postdep_objects_CXX="$p"
12315
	 else
12316
	   postdep_objects_CXX="$postdep_objects_CXX $p"
12317
	 fi
12318
       fi
12319
       ;;
12320
12321
    *) ;; # Ignore the rest.
12322
12323
    esac
12324
  done
12325
12326
  # Clean up.
12327
  rm -f a.out a.exe
12328
else
12329
  echo "libtool.m4: error: problem compiling CXX test program"
12330
fi
12331
12332
$rm -f confest.$objext
12333
12334
compiler_lib_search_dirs_CXX=
12335
if test -n "$compiler_lib_search_path_CXX"; then
12336
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12337
fi
12338
12339
# PORTME: override above test on systems where it is broken
12340
case $host_os in
12341
interix[3-9]*)
12342
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12343
  # hack all around it, let's just trust "g++" to DTRT.
12344
  predep_objects_CXX=
12345
  postdep_objects_CXX=
12346
  postdeps_CXX=
12347
  ;;
12348
12349
linux*)
12350
  case `$CC -V 2>&1 | sed 5q` in
12351
  *Sun\ C*)
12352
    # Sun C++ 5.9
12353
    #
12354
    # The more standards-conforming stlport4 library is
12355
    # incompatible with the Cstd library. Avoid specifying
12356
    # it if it's in CXXFLAGS. Ignore libCrun as
12357
    # -library=stlport4 depends on it.
12358
    case " $CXX $CXXFLAGS " in
12359
    *" -library=stlport4 "*)
12360
      solaris_use_stlport4=yes
12361
      ;;
12362
    esac
12363
    if test "$solaris_use_stlport4" != yes; then
12364
      postdeps_CXX='-library=Cstd -library=Crun'
12365
    fi
12366
    ;;
12367
  esac
12368
  ;;
12369
12370
solaris*)
12371
  case $cc_basename in
12372
  CC*)
12373
    # The more standards-conforming stlport4 library is
12374
    # incompatible with the Cstd library. Avoid specifying
12375
    # it if it's in CXXFLAGS. Ignore libCrun as
12376
    # -library=stlport4 depends on it.
12377
    case " $CXX $CXXFLAGS " in
12378
    *" -library=stlport4 "*)
12379
      solaris_use_stlport4=yes
12380
      ;;
12381
    esac
12382
12383
    # Adding this requires a known-good setup of shared libraries for
12384
    # Sun compiler versions before 5.6, else PIC objects from an old
12385
    # archive will be linked into the output, leading to subtle bugs.
12386
    if test "$solaris_use_stlport4" != yes; then
12387
      postdeps_CXX='-library=Cstd -library=Crun'
12388
    fi
12389
    ;;
12390
  esac
12391
  ;;
12392
esac
12393
12394
case " $postdeps_CXX " in
12395
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12396
esac
12397
12398
lt_prog_compiler_wl_CXX=
12399
lt_prog_compiler_pic_CXX=
12400
lt_prog_compiler_static_CXX=
12401
12402
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12403
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12404
12405
  # C++ specific cases for pic, static, wl, etc.
12406
  if test "$GXX" = yes; then
12407
    lt_prog_compiler_wl_CXX='-Wl,'
12408
    lt_prog_compiler_static_CXX='-static'
12409
12410
    case $host_os in
12411
    aix*)
12412
      # All AIX code is PIC.
12413
      if test "$host_cpu" = ia64; then
12414
	# AIX 5 now supports IA64 processor
12415
	lt_prog_compiler_static_CXX='-Bstatic'
12416
      fi
12417
      ;;
12418
    amigaos*)
12419
      # FIXME: we need at least 68020 code to build shared libraries, but
12420
      # adding the `-m68020' flag to GCC prevents building anything better,
12421
      # like `-m68040'.
12422
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12423
      ;;
12424
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12425
      # PIC is the default for these OSes.
12426
      ;;
12427
    mingw* | cygwin* | os2* | pw32*)
12428
      # This hack is so that the source file can tell whether it is being
12429
      # built for inclusion in a dll (and should export symbols for example).
12430
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12431
      # (--disable-auto-import) libraries
12432
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12433
      ;;
12434
    darwin* | rhapsody*)
12435
      # PIC is the default on this platform
12436
      # Common symbols not allowed in MH_DYLIB files
12437
      lt_prog_compiler_pic_CXX='-fno-common'
12438
      ;;
12439
    *djgpp*)
12440
      # DJGPP does not support shared libraries at all
12441
      lt_prog_compiler_pic_CXX=
12442
      ;;
12443
    interix[3-9]*)
12444
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12445
      # Instead, we relocate shared libraries at runtime.
12446
      ;;
12447
    sysv4*MP*)
12448
      if test -d /usr/nec; then
12449
	lt_prog_compiler_pic_CXX=-Kconform_pic
12450
      fi
12451
      ;;
12452
    hpux*)
12453
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12454
      # not for PA HP-UX.
12455
      case $host_cpu in
12456
      hppa*64*|ia64*)
12457
	;;
12458
      *)
12459
	lt_prog_compiler_pic_CXX='-fPIC'
12460
	;;
12461
      esac
12462
      ;;
12463
    *)
12464
      lt_prog_compiler_pic_CXX='-fPIC'
12465
      ;;
12466
    esac
12467
  else
12468
    case $host_os in
12469
      aix[4-9]*)
12470
	# All AIX code is PIC.
12471
	if test "$host_cpu" = ia64; then
12472
	  # AIX 5 now supports IA64 processor
12473
	  lt_prog_compiler_static_CXX='-Bstatic'
12474
	else
12475
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12476
	fi
12477
	;;
12478
      chorus*)
12479
	case $cc_basename in
12480
	cxch68*)
12481
	  # Green Hills C++ Compiler
12482
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12483
	  ;;
12484
	esac
12485
	;;
12486
       darwin*)
12487
         # PIC is the default on this platform
12488
         # Common symbols not allowed in MH_DYLIB files
12489
         case $cc_basename in
12490
           xlc*)
12491
           lt_prog_compiler_pic_CXX='-qnocommon'
12492
           lt_prog_compiler_wl_CXX='-Wl,'
12493
           ;;
12494
         esac
12495
       ;;
12496
      dgux*)
12497
	case $cc_basename in
12498
	  ec++*)
12499
	    lt_prog_compiler_pic_CXX='-KPIC'
12500
	    ;;
12501
	  ghcx*)
12502
	    # Green Hills C++ Compiler
12503
	    lt_prog_compiler_pic_CXX='-pic'
12504
	    ;;
12505
	  *)
12506
	    ;;
12507
	esac
12508
	;;
12509
      freebsd* | dragonfly*)
12510
	# FreeBSD uses GNU C++
12511
	;;
12512
      hpux9* | hpux10* | hpux11*)
12513
	case $cc_basename in
12514
	  CC*)
12515
	    lt_prog_compiler_wl_CXX='-Wl,'
12516
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12517
	    if test "$host_cpu" != ia64; then
12518
	      lt_prog_compiler_pic_CXX='+Z'
12519
	    fi
12520
	    ;;
12521
	  aCC*)
12522
	    lt_prog_compiler_wl_CXX='-Wl,'
12523
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12524
	    case $host_cpu in
12525
	    hppa*64*|ia64*)
12526
	      # +Z the default
12527
	      ;;
12528
	    *)
12529
	      lt_prog_compiler_pic_CXX='+Z'
12530
	      ;;
12531
	    esac
12532
	    ;;
12533
	  *)
12534
	    ;;
12535
	esac
12536
	;;
12537
      interix*)
12538
	# This is c89, which is MS Visual C++ (no shared libs)
12539
	# Anyone wants to do a port?
12540
	;;
12541
      irix5* | irix6* | nonstopux*)
12542
	case $cc_basename in
12543
	  CC*)
12544
	    lt_prog_compiler_wl_CXX='-Wl,'
12545
	    lt_prog_compiler_static_CXX='-non_shared'
12546
	    # CC pic flag -KPIC is the default.
12547
	    ;;
12548
	  *)
12549
	    ;;
12550
	esac
12551
	;;
12552
      linux* | k*bsd*-gnu)
12553
	case $cc_basename in
12554
	  KCC*)
12555
	    # KAI C++ Compiler
12556
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12557
	    lt_prog_compiler_pic_CXX='-fPIC'
12558
	    ;;
12559
	  icpc* | ecpc*)
12560
	    # Intel C++
12561
	    lt_prog_compiler_wl_CXX='-Wl,'
12562
	    lt_prog_compiler_pic_CXX='-KPIC'
12563
	    lt_prog_compiler_static_CXX='-static'
12564
	    ;;
12565
	  pgCC* | pgcpp*)
12566
	    # Portland Group C++ compiler.
12567
	    lt_prog_compiler_wl_CXX='-Wl,'
12568
	    lt_prog_compiler_pic_CXX='-fpic'
12569
	    lt_prog_compiler_static_CXX='-Bstatic'
12570
	    ;;
12571
	  cxx*)
12572
	    # Compaq C++
12573
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12574
	    # Linux and Compaq Tru64 Unix objects are PIC.
12575
	    lt_prog_compiler_pic_CXX=
12576
	    lt_prog_compiler_static_CXX='-non_shared'
12577
	    ;;
12578
	  *)
12579
	    case `$CC -V 2>&1 | sed 5q` in
12580
	    *Sun\ C*)
12581
	      # Sun C++ 5.9
12582
	      lt_prog_compiler_pic_CXX='-KPIC'
12583
	      lt_prog_compiler_static_CXX='-Bstatic'
12584
	      lt_prog_compiler_wl_CXX='-Qoption ld '
12585
	      ;;
12586
	    esac
12587
	    ;;
12588
	esac
12589
	;;
12590
      lynxos*)
12591
	;;
12592
      m88k*)
12593
	;;
12594
      mvs*)
12595
	case $cc_basename in
12596
	  cxx*)
12597
	    lt_prog_compiler_pic_CXX='-W c,exportall'
12598
	    ;;
12599
	  *)
12600
	    ;;
12601
	esac
12602
	;;
12603
      netbsd* | netbsdelf*-gnu)
12604
	;;
12605
      osf3* | osf4* | osf5*)
12606
	case $cc_basename in
12607
	  KCC*)
12608
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12609
	    ;;
12610
	  RCC*)
12611
	    # Rational C++ 2.4.1
12612
	    lt_prog_compiler_pic_CXX='-pic'
12613
	    ;;
12614
	  cxx*)
12615
	    # Digital/Compaq C++
12616
	    lt_prog_compiler_wl_CXX='-Wl,'
12617
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12618
	    # Linux and Compaq Tru64 Unix objects are PIC.
12619
	    lt_prog_compiler_pic_CXX=
12620
	    lt_prog_compiler_static_CXX='-non_shared'
12621
	    ;;
12622
	  *)
12623
	    ;;
12624
	esac
12625
	;;
12626
      psos*)
12627
	;;
12628
      solaris*)
12629
	case $cc_basename in
12630
	  CC*)
12631
	    # Sun C++ 4.2, 5.x and Centerline C++
12632
	    lt_prog_compiler_pic_CXX='-KPIC'
12633
	    lt_prog_compiler_static_CXX='-Bstatic'
12634
	    lt_prog_compiler_wl_CXX='-Qoption ld '
12635
	    ;;
12636
	  gcx*)
12637
	    # Green Hills C++ Compiler
12638
	    lt_prog_compiler_pic_CXX='-PIC'
12639
	    ;;
12640
	  *)
12641
	    ;;
12642
	esac
12643
	;;
12644
      sunos4*)
12645
	case $cc_basename in
12646
	  CC*)
12647
	    # Sun C++ 4.x
12648
	    lt_prog_compiler_pic_CXX='-pic'
12649
	    lt_prog_compiler_static_CXX='-Bstatic'
12650
	    ;;
12651
	  lcc*)
12652
	    # Lucid
12653
	    lt_prog_compiler_pic_CXX='-pic'
12654
	    ;;
12655
	  *)
12656
	    ;;
12657
	esac
12658
	;;
12659
      tandem*)
12660
	case $cc_basename in
12661
	  NCC*)
12662
	    # NonStop-UX NCC 3.20
12663
	    lt_prog_compiler_pic_CXX='-KPIC'
12664
	    ;;
12665
	  *)
12666
	    ;;
12667
	esac
12668
	;;
12669
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12670
	case $cc_basename in
12671
	  CC*)
12672
	    lt_prog_compiler_wl_CXX='-Wl,'
12673
	    lt_prog_compiler_pic_CXX='-KPIC'
12674
	    lt_prog_compiler_static_CXX='-Bstatic'
12675
	    ;;
12676
	esac
12677
	;;
12678
      vxworks*)
12679
	;;
12680
      *)
12681
	lt_prog_compiler_can_build_shared_CXX=no
12682
	;;
12683
    esac
12684
  fi
12685
12686
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12687
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12688
12689
#
12690
# Check to make sure the PIC flag actually works.
12691
#
12692
if test -n "$lt_prog_compiler_pic_CXX"; then
12693
12694
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12695
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12696
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12697
  echo $ECHO_N "(cached) $ECHO_C" >&6
12698
else
12699
  lt_cv_prog_compiler_pic_works_CXX=no
12700
  ac_outfile=conftest.$ac_objext
12701
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12702
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12703
   # Insert the option either (1) after the last *FLAGS variable, or
12704
   # (2) before a word containing "conftest.", or (3) at the end.
12705
   # Note that $ac_compile itself does not contain backslashes and begins
12706
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12707
   # The option is referenced via a variable to avoid confusing sed.
12708
   lt_compile=`echo "$ac_compile" | $SED \
12709
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12710
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711
   -e 's:$: $lt_compiler_flag:'`
12712
   (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
12713
   (eval "$lt_compile" 2>conftest.err)
12714
   ac_status=$?
12715
   cat conftest.err >&5
12716
   echo "$as_me:12716: \$? = $ac_status" >&5
12717
   if (exit $ac_status) && test -s "$ac_outfile"; then
12718
     # The compiler can only warn and ignore the option if not recognized
12719
     # So say no if there are warnings other than the usual output.
12720
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12721
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12722
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12723
       lt_cv_prog_compiler_pic_works_CXX=yes
12724
     fi
12725
   fi
12726
   $rm conftest*
12727
12728
fi
12729
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12730
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12731
12732
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12733
    case $lt_prog_compiler_pic_CXX in
12734
     "" | " "*) ;;
12735
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12736
     esac
12737
else
12738
    lt_prog_compiler_pic_CXX=
12739
     lt_prog_compiler_can_build_shared_CXX=no
12740
fi
12741
12742
fi
12743
case $host_os in
12744
  # For platforms which do not support PIC, -DPIC is meaningless:
12745
  *djgpp*)
12746
    lt_prog_compiler_pic_CXX=
12747
    ;;
12748
  *)
12749
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12750
    ;;
12751
esac
12752
12753
#
12754
# Check to make sure the static flag actually works.
12755
#
12756
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12757
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12758
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12759
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12760
  echo $ECHO_N "(cached) $ECHO_C" >&6
12761
else
12762
  lt_cv_prog_compiler_static_works_CXX=no
12763
   save_LDFLAGS="$LDFLAGS"
12764
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12765
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12766
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12767
     # The linker can only warn and ignore the option if not recognized
12768
     # So say no if there are warnings
12769
     if test -s conftest.err; then
12770
       # Append any errors to the config.log.
12771
       cat conftest.err 1>&5
12772
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12773
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12774
       if diff conftest.exp conftest.er2 >/dev/null; then
12775
         lt_cv_prog_compiler_static_works_CXX=yes
12776
       fi
12777
     else
12778
       lt_cv_prog_compiler_static_works_CXX=yes
12779
     fi
12780
   fi
12781
   $rm -r conftest*
12782
   LDFLAGS="$save_LDFLAGS"
12783
12784
fi
12785
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12786
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12787
12788
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12789
    :
12790
else
12791
    lt_prog_compiler_static_CXX=
12792
fi
12793
12794
12795
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12796
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12797
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12798
  echo $ECHO_N "(cached) $ECHO_C" >&6
12799
else
12800
  lt_cv_prog_compiler_c_o_CXX=no
12801
   $rm -r conftest 2>/dev/null
12802
   mkdir conftest
12803
   cd conftest
12804
   mkdir out
12805
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806
12807
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12808
   # Insert the option either (1) after the last *FLAGS variable, or
12809
   # (2) before a word containing "conftest.", or (3) at the end.
12810
   # Note that $ac_compile itself does not contain backslashes and begins
12811
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12812
   lt_compile=`echo "$ac_compile" | $SED \
12813
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12814
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12815
   -e 's:$: $lt_compiler_flag:'`
12816
   (eval echo "\"\$as_me:12816: $lt_compile\"" >&5)
12817
   (eval "$lt_compile" 2>out/conftest.err)
12818
   ac_status=$?
12819
   cat out/conftest.err >&5
12820
   echo "$as_me:12820: \$? = $ac_status" >&5
12821
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12822
   then
12823
     # The compiler can only warn and ignore the option if not recognized
12824
     # So say no if there are warnings
12825
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12826
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12827
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12828
       lt_cv_prog_compiler_c_o_CXX=yes
12829
     fi
12830
   fi
12831
   chmod u+w . 2>&5
12832
   $rm conftest*
12833
   # SGI C++ compiler will create directory out/ii_files/ for
12834
   # template instantiation
12835
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12836
   $rm out/* && rmdir out
12837
   cd ..
12838
   rmdir conftest
12839
   $rm conftest*
12840
12841
fi
12842
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12843
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12844
12845
12846
hard_links="nottested"
12847
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12848
  # do not overwrite the value of need_locks provided by the user
12849
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12850
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12851
  hard_links=yes
12852
  $rm conftest*
12853
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12854
  touch conftest.a
12855
  ln conftest.a conftest.b 2>&5 || hard_links=no
12856
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12857
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12858
echo "${ECHO_T}$hard_links" >&6; }
12859
  if test "$hard_links" = no; then
12860
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12861
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12862
    need_locks=warn
12863
  fi
12864
else
12865
  need_locks=no
12866
fi
12867
12868
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12869
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12870
12871
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872
  case $host_os in
12873
  aix[4-9]*)
12874
    # If we're using GNU nm, then we don't want the "-C" option.
12875
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12876
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12877
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12878
    else
12879
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12880
    fi
12881
    ;;
12882
  pw32*)
12883
    export_symbols_cmds_CXX="$ltdll_cmds"
12884
  ;;
12885
  cygwin* | mingw*)
12886
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12887
  ;;
12888
  linux* | k*bsd*-gnu)
12889
    link_all_deplibs_CXX=no
12890
  ;;
12891
  *)
12892
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12893
  ;;
12894
  esac
12895
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12896
12897
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12898
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12899
test "$ld_shlibs_CXX" = no && can_build_shared=no
12900
12901
#
12902
# Do we need to explicitly link libc?
12903
#
12904
case "x$archive_cmds_need_lc_CXX" in
12905
x|xyes)
12906
  # Assume -lc should be added
12907
  archive_cmds_need_lc_CXX=yes
12908
12909
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12910
    case $archive_cmds_CXX in
12911
    *'~'*)
12912
      # FIXME: we may have to deal with multi-command sequences.
12913
      ;;
12914
    '$CC '*)
12915
      # Test whether the compiler implicitly links with -lc since on some
12916
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12917
      # to ld, don't add -lc before -lgcc.
12918
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12919
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12920
      $rm conftest*
12921
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922
12923
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924
  (eval $ac_compile) 2>&5
12925
  ac_status=$?
12926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
  (exit $ac_status); } 2>conftest.err; then
12928
        soname=conftest
12929
        lib=conftest
12930
        libobjs=conftest.$ac_objext
12931
        deplibs=
12932
        wl=$lt_prog_compiler_wl_CXX
12933
	pic_flag=$lt_prog_compiler_pic_CXX
12934
        compiler_flags=-v
12935
        linker_flags=-v
12936
        verstring=
12937
        output_objdir=.
12938
        libname=conftest
12939
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12940
        allow_undefined_flag_CXX=
12941
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12942
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12943
  ac_status=$?
12944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945
  (exit $ac_status); }
12946
        then
12947
	  archive_cmds_need_lc_CXX=no
12948
        else
12949
	  archive_cmds_need_lc_CXX=yes
12950
        fi
12951
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12952
      else
12953
        cat conftest.err 1>&5
12954
      fi
12955
      $rm conftest*
12956
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12957
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12958
      ;;
12959
    esac
12960
  fi
12961
  ;;
12962
esac
12963
12964
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12965
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12966
library_names_spec=
12967
libname_spec='lib$name'
12968
soname_spec=
12969
shrext_cmds=".so"
12970
postinstall_cmds=
12971
postuninstall_cmds=
12972
finish_cmds=
12973
finish_eval=
12974
shlibpath_var=
12975
shlibpath_overrides_runpath=unknown
12976
version_type=none
12977
dynamic_linker="$host_os ld.so"
12978
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12979
12980
need_lib_prefix=unknown
12981
hardcode_into_libs=no
12982
12983
# when you set need_version to no, make sure it does not cause -set_version
12984
# flags to be left without arguments
12985
need_version=unknown
12986
12987
case $host_os in
12988
aix3*)
12989
  version_type=linux
12990
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12991
  shlibpath_var=LIBPATH
12992
12993
  # AIX 3 has no versioning support, so we append a major version to the name.
12994
  soname_spec='${libname}${release}${shared_ext}$major'
12995
  ;;
12996
12997
aix[4-9]*)
12998
  version_type=linux
12999
  need_lib_prefix=no
13000
  need_version=no
13001
  hardcode_into_libs=yes
13002
  if test "$host_cpu" = ia64; then
13003
    # AIX 5 supports IA64
13004
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13005
    shlibpath_var=LD_LIBRARY_PATH
13006
  else
13007
    # With GCC up to 2.95.x, collect2 would create an import file
13008
    # for dependence libraries.  The import file would start with
13009
    # the line `#! .'.  This would cause the generated library to
13010
    # depend on `.', always an invalid library.  This was fixed in
13011
    # development snapshots of GCC prior to 3.0.
13012
    case $host_os in
13013
      aix4 | aix4.[01] | aix4.[01].*)
13014
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13015
	   echo ' yes '
13016
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13017
	:
13018
      else
13019
	can_build_shared=no
13020
      fi
13021
      ;;
13022
    esac
13023
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13024
    # soname into executable. Probably we can add versioning support to
13025
    # collect2, so additional links can be useful in future.
13026
    if test "$aix_use_runtimelinking" = yes; then
13027
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13028
      # instead of lib<name>.a to let people know that these are not
13029
      # typical AIX shared libraries.
13030
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031
    else
13032
      # We preserve .a as extension for shared libraries through AIX4.2
13033
      # and later when we are not doing run time linking.
13034
      library_names_spec='${libname}${release}.a $libname.a'
13035
      soname_spec='${libname}${release}${shared_ext}$major'
13036
    fi
13037
    shlibpath_var=LIBPATH
13038
  fi
13039
  ;;
13040
13041
amigaos*)
13042
  library_names_spec='$libname.ixlibrary $libname.a'
13043
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13044
  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'
13045
  ;;
13046
13047
beos*)
13048
  library_names_spec='${libname}${shared_ext}'
13049
  dynamic_linker="$host_os ld.so"
13050
  shlibpath_var=LIBRARY_PATH
13051
  ;;
13052
13053
bsdi[45]*)
13054
  version_type=linux
13055
  need_version=no
13056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057
  soname_spec='${libname}${release}${shared_ext}$major'
13058
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13059
  shlibpath_var=LD_LIBRARY_PATH
13060
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13061
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13062
  # the default ld.so.conf also contains /usr/contrib/lib and
13063
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13064
  # libtool to hard-code these into programs
13065
  ;;
13066
13067
cygwin* | mingw* | pw32*)
13068
  version_type=windows
13069
  shrext_cmds=".dll"
13070
  need_version=no
13071
  need_lib_prefix=no
13072
13073
  case $GCC,$host_os in
13074
  yes,cygwin* | yes,mingw* | yes,pw32*)
13075
    library_names_spec='$libname.dll.a'
13076
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13077
    postinstall_cmds='base_file=`basename \${file}`~
13078
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13079
      dldir=$destdir/`dirname \$dlpath`~
13080
      test -d \$dldir || mkdir -p \$dldir~
13081
      $install_prog $dir/$dlname \$dldir/$dlname~
13082
      chmod a+x \$dldir/$dlname'
13083
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13084
      dlpath=$dir/\$dldll~
13085
       $rm \$dlpath'
13086
    shlibpath_overrides_runpath=yes
13087
13088
    case $host_os in
13089
    cygwin*)
13090
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13091
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13092
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13093
      ;;
13094
    mingw*)
13095
      # MinGW DLLs use traditional 'lib' prefix
13096
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13097
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13098
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13099
        # It is most probably a Windows format PATH printed by
13100
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13101
        # path with ; separators, and with drive letters. We can handle the
13102
        # drive letters (cygwin fileutils understands them), so leave them,
13103
        # especially as we might pass files found there to a mingw objdump,
13104
        # which wouldn't understand a cygwinified path. Ahh.
13105
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13106
      else
13107
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13108
      fi
13109
      ;;
13110
    pw32*)
13111
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13112
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13113
      ;;
13114
    esac
13115
    ;;
13116
13117
  *)
13118
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13119
    ;;
13120
  esac
13121
  dynamic_linker='Win32 ld.exe'
13122
  # FIXME: first we should search . and the directory the executable is in
13123
  shlibpath_var=PATH
13124
  ;;
13125
13126
darwin* | rhapsody*)
13127
  dynamic_linker="$host_os dyld"
13128
  version_type=darwin
13129
  need_lib_prefix=no
13130
  need_version=no
13131
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13132
  soname_spec='${libname}${release}${major}$shared_ext'
13133
  shlibpath_overrides_runpath=yes
13134
  shlibpath_var=DYLD_LIBRARY_PATH
13135
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13136
13137
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13138
  ;;
13139
13140
dgux*)
13141
  version_type=linux
13142
  need_lib_prefix=no
13143
  need_version=no
13144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13145
  soname_spec='${libname}${release}${shared_ext}$major'
13146
  shlibpath_var=LD_LIBRARY_PATH
13147
  ;;
13148
13149
freebsd1*)
13150
  dynamic_linker=no
13151
  ;;
13152
13153
freebsd* | dragonfly*)
13154
  # DragonFly does not have aout.  When/if they implement a new
13155
  # versioning mechanism, adjust this.
13156
  if test -x /usr/bin/objformat; then
13157
    objformat=`/usr/bin/objformat`
13158
  else
13159
    case $host_os in
13160
    freebsd[123]*) objformat=aout ;;
13161
    *) objformat=elf ;;
13162
    esac
13163
  fi
13164
  version_type=freebsd-$objformat
13165
  case $version_type in
13166
    freebsd-elf*)
13167
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13168
      need_version=no
13169
      need_lib_prefix=no
13170
      ;;
13171
    freebsd-*)
13172
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13173
      need_version=yes
13174
      ;;
13175
  esac
13176
  shlibpath_var=LD_LIBRARY_PATH
13177
  case $host_os in
13178
  freebsd2*)
13179
    shlibpath_overrides_runpath=yes
13180
    ;;
13181
  freebsd3.[01]* | freebsdelf3.[01]*)
13182
    shlibpath_overrides_runpath=yes
13183
    hardcode_into_libs=yes
13184
    ;;
13185
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13186
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13187
    shlibpath_overrides_runpath=no
13188
    hardcode_into_libs=yes
13189
    ;;
13190
  *) # from 4.6 on, and DragonFly
13191
    shlibpath_overrides_runpath=yes
13192
    hardcode_into_libs=yes
13193
    ;;
13194
  esac
13195
  ;;
13196
13197
gnu*)
13198
  version_type=linux
13199
  need_lib_prefix=no
13200
  need_version=no
13201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13202
  soname_spec='${libname}${release}${shared_ext}$major'
13203
  shlibpath_var=LD_LIBRARY_PATH
13204
  hardcode_into_libs=yes
13205
  ;;
13206
13207
hpux9* | hpux10* | hpux11*)
13208
  # Give a soname corresponding to the major version so that dld.sl refuses to
13209
  # link against other versions.
13210
  version_type=sunos
13211
  need_lib_prefix=no
13212
  need_version=no
13213
  case $host_cpu in
13214
  ia64*)
13215
    shrext_cmds='.so'
13216
    hardcode_into_libs=yes
13217
    dynamic_linker="$host_os dld.so"
13218
    shlibpath_var=LD_LIBRARY_PATH
13219
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13220
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221
    soname_spec='${libname}${release}${shared_ext}$major'
13222
    if test "X$HPUX_IA64_MODE" = X32; then
13223
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13224
    else
13225
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13226
    fi
13227
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13228
    ;;
13229
   hppa*64*)
13230
     shrext_cmds='.sl'
13231
     hardcode_into_libs=yes
13232
     dynamic_linker="$host_os dld.sl"
13233
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13234
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13235
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236
     soname_spec='${libname}${release}${shared_ext}$major'
13237
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13238
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13239
     ;;
13240
   *)
13241
    shrext_cmds='.sl'
13242
    dynamic_linker="$host_os dld.sl"
13243
    shlibpath_var=SHLIB_PATH
13244
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13245
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246
    soname_spec='${libname}${release}${shared_ext}$major'
13247
    ;;
13248
  esac
13249
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13250
  postinstall_cmds='chmod 555 $lib'
13251
  ;;
13252
13253
interix[3-9]*)
13254
  version_type=linux
13255
  need_lib_prefix=no
13256
  need_version=no
13257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13258
  soname_spec='${libname}${release}${shared_ext}$major'
13259
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13260
  shlibpath_var=LD_LIBRARY_PATH
13261
  shlibpath_overrides_runpath=no
13262
  hardcode_into_libs=yes
13263
  ;;
13264
13265
irix5* | irix6* | nonstopux*)
13266
  case $host_os in
13267
    nonstopux*) version_type=nonstopux ;;
13268
    *)
13269
	if test "$lt_cv_prog_gnu_ld" = yes; then
13270
		version_type=linux
13271
	else
13272
		version_type=irix
13273
	fi ;;
13274
  esac
13275
  need_lib_prefix=no
13276
  need_version=no
13277
  soname_spec='${libname}${release}${shared_ext}$major'
13278
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13279
  case $host_os in
13280
  irix5* | nonstopux*)
13281
    libsuff= shlibsuff=
13282
    ;;
13283
  *)
13284
    case $LD in # libtool.m4 will add one of these switches to LD
13285
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13286
      libsuff= shlibsuff= libmagic=32-bit;;
13287
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13288
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13289
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13290
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13291
    *) libsuff= shlibsuff= libmagic=never-match;;
13292
    esac
13293
    ;;
13294
  esac
13295
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13296
  shlibpath_overrides_runpath=no
13297
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13298
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13299
  hardcode_into_libs=yes
13300
  ;;
13301
13302
# No shared lib support for Linux oldld, aout, or coff.
13303
linux*oldld* | linux*aout* | linux*coff*)
13304
  dynamic_linker=no
13305
  ;;
13306
13307
# This must be Linux ELF.
13308
linux* | k*bsd*-gnu)
13309
  version_type=linux
13310
  need_lib_prefix=no
13311
  need_version=no
13312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313
  soname_spec='${libname}${release}${shared_ext}$major'
13314
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13315
  shlibpath_var=LD_LIBRARY_PATH
13316
  shlibpath_overrides_runpath=no
13317
  # This implies no fast_install, which is unacceptable.
13318
  # Some rework will be needed to allow for fast_install
13319
  # before this can be enabled.
13320
  hardcode_into_libs=yes
13321
13322
  # Append ld.so.conf contents to the search path
13323
  if test -f /etc/ld.so.conf; then
13324
    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' ' '`
13325
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13326
  fi
13327
13328
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13329
  # powerpc, because MkLinux only supported shared libraries with the
13330
  # GNU dynamic linker.  Since this was broken with cross compilers,
13331
  # most powerpc-linux boxes support dynamic linking these days and
13332
  # people can always --disable-shared, the test was removed, and we
13333
  # assume the GNU/Linux dynamic linker is in use.
13334
  dynamic_linker='GNU/Linux ld.so'
13335
  ;;
13336
13337
netbsdelf*-gnu)
13338
  version_type=linux
13339
  need_lib_prefix=no
13340
  need_version=no
13341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342
  soname_spec='${libname}${release}${shared_ext}$major'
13343
  shlibpath_var=LD_LIBRARY_PATH
13344
  shlibpath_overrides_runpath=no
13345
  hardcode_into_libs=yes
13346
  dynamic_linker='NetBSD ld.elf_so'
13347
  ;;
13348
13349
netbsd*)
13350
  version_type=sunos
13351
  need_lib_prefix=no
13352
  need_version=no
13353
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13356
    dynamic_linker='NetBSD (a.out) ld.so'
13357
  else
13358
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13359
    soname_spec='${libname}${release}${shared_ext}$major'
13360
    dynamic_linker='NetBSD ld.elf_so'
13361
  fi
13362
  shlibpath_var=LD_LIBRARY_PATH
13363
  shlibpath_overrides_runpath=yes
13364
  hardcode_into_libs=yes
13365
  ;;
13366
13367
newsos6)
13368
  version_type=linux
13369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370
  shlibpath_var=LD_LIBRARY_PATH
13371
  shlibpath_overrides_runpath=yes
13372
  ;;
13373
13374
nto-qnx*)
13375
  version_type=linux
13376
  need_lib_prefix=no
13377
  need_version=no
13378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379
  soname_spec='${libname}${release}${shared_ext}$major'
13380
  shlibpath_var=LD_LIBRARY_PATH
13381
  shlibpath_overrides_runpath=yes
13382
  ;;
13383
13384
openbsd*)
13385
  version_type=sunos
13386
  sys_lib_dlsearch_path_spec="/usr/lib"
13387
  need_lib_prefix=no
13388
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13389
  case $host_os in
13390
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13391
    *)                         need_version=no  ;;
13392
  esac
13393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13394
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13395
  shlibpath_var=LD_LIBRARY_PATH
13396
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13397
    case $host_os in
13398
      openbsd2.[89] | openbsd2.[89].*)
13399
	shlibpath_overrides_runpath=no
13400
	;;
13401
      *)
13402
	shlibpath_overrides_runpath=yes
13403
	;;
13404
      esac
13405
  else
13406
    shlibpath_overrides_runpath=yes
13407
  fi
13408
  ;;
13409
13410
os2*)
13411
  libname_spec='$name'
13412
  shrext_cmds=".dll"
13413
  need_lib_prefix=no
13414
  library_names_spec='$libname${shared_ext} $libname.a'
13415
  dynamic_linker='OS/2 ld.exe'
13416
  shlibpath_var=LIBPATH
13417
  ;;
13418
13419
osf3* | osf4* | osf5*)
13420
  version_type=osf
13421
  need_lib_prefix=no
13422
  need_version=no
13423
  soname_spec='${libname}${release}${shared_ext}$major'
13424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425
  shlibpath_var=LD_LIBRARY_PATH
13426
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13427
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13428
  ;;
13429
13430
rdos*)
13431
  dynamic_linker=no
13432
  ;;
13433
13434
solaris*)
13435
  version_type=linux
13436
  need_lib_prefix=no
13437
  need_version=no
13438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439
  soname_spec='${libname}${release}${shared_ext}$major'
13440
  shlibpath_var=LD_LIBRARY_PATH
13441
  shlibpath_overrides_runpath=yes
13442
  hardcode_into_libs=yes
13443
  # ldd complains unless libraries are executable
13444
  postinstall_cmds='chmod +x $lib'
13445
  ;;
13446
13447
sunos4*)
13448
  version_type=sunos
13449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13450
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13451
  shlibpath_var=LD_LIBRARY_PATH
13452
  shlibpath_overrides_runpath=yes
13453
  if test "$with_gnu_ld" = yes; then
13454
    need_lib_prefix=no
13455
  fi
13456
  need_version=yes
13457
  ;;
13458
13459
sysv4 | sysv4.3*)
13460
  version_type=linux
13461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462
  soname_spec='${libname}${release}${shared_ext}$major'
13463
  shlibpath_var=LD_LIBRARY_PATH
13464
  case $host_vendor in
13465
    sni)
13466
      shlibpath_overrides_runpath=no
13467
      need_lib_prefix=no
13468
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13469
      runpath_var=LD_RUN_PATH
13470
      ;;
13471
    siemens)
13472
      need_lib_prefix=no
13473
      ;;
13474
    motorola)
13475
      need_lib_prefix=no
13476
      need_version=no
13477
      shlibpath_overrides_runpath=no
13478
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13479
      ;;
13480
  esac
13481
  ;;
13482
13483
sysv4*MP*)
13484
  if test -d /usr/nec ;then
13485
    version_type=linux
13486
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13487
    soname_spec='$libname${shared_ext}.$major'
13488
    shlibpath_var=LD_LIBRARY_PATH
13489
  fi
13490
  ;;
13491
13492
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13493
  version_type=freebsd-elf
13494
  need_lib_prefix=no
13495
  need_version=no
13496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13497
  soname_spec='${libname}${release}${shared_ext}$major'
13498
  shlibpath_var=LD_LIBRARY_PATH
13499
  hardcode_into_libs=yes
13500
  if test "$with_gnu_ld" = yes; then
13501
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13502
    shlibpath_overrides_runpath=no
13503
  else
13504
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13505
    shlibpath_overrides_runpath=yes
13506
    case $host_os in
13507
      sco3.2v5*)
13508
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13509
	;;
13510
    esac
13511
  fi
13512
  sys_lib_dlsearch_path_spec='/usr/lib'
13513
  ;;
13514
13515
uts4*)
13516
  version_type=linux
13517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518
  soname_spec='${libname}${release}${shared_ext}$major'
13519
  shlibpath_var=LD_LIBRARY_PATH
13520
  ;;
13521
13522
*)
13523
  dynamic_linker=no
13524
  ;;
13525
esac
13526
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13527
echo "${ECHO_T}$dynamic_linker" >&6; }
13528
test "$dynamic_linker" = no && can_build_shared=no
13529
13530
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13531
  echo $ECHO_N "(cached) $ECHO_C" >&6
13532
else
13533
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13534
fi
13535
13536
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13537
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13538
  echo $ECHO_N "(cached) $ECHO_C" >&6
13539
else
13540
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13541
fi
13542
13543
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13544
13545
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13546
if test "$GCC" = yes; then
13547
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13548
fi
13549
13550
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13551
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13552
hardcode_action_CXX=
13553
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13554
   test -n "$runpath_var_CXX" || \
13555
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13556
13557
  # We can hardcode non-existant directories.
13558
  if test "$hardcode_direct_CXX" != no &&
13559
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13560
     # have to relink, otherwise we might link with an installed library
13561
     # when we should be linking with a yet-to-be-installed one
13562
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13563
     test "$hardcode_minus_L_CXX" != no; then
13564
    # Linking always hardcodes the temporary library directory.
13565
    hardcode_action_CXX=relink
13566
  else
13567
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13568
    hardcode_action_CXX=immediate
13569
  fi
13570
else
13571
  # We cannot hardcode anything, or else we can only hardcode existing
13572
  # directories.
13573
  hardcode_action_CXX=unsupported
13574
fi
13575
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13576
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13577
13578
if test "$hardcode_action_CXX" = relink; then
13579
  # Fast installation is not supported
13580
  enable_fast_install=no
13581
elif test "$shlibpath_overrides_runpath" = yes ||
13582
     test "$enable_shared" = no; then
13583
  # Fast installation is not necessary
13584
  enable_fast_install=needless
13585
fi
13586
13587
13588
# The else clause should only fire when bootstrapping the
13589
# libtool distribution, otherwise you forgot to ship ltmain.sh
13590
# with your package, and you will get complaints that there are
13591
# no rules to generate ltmain.sh.
13592
if test -f "$ltmain"; then
13593
  # See if we are running on zsh, and set the options which allow our commands through
13594
  # without removal of \ escapes.
13595
  if test -n "${ZSH_VERSION+set}" ; then
13596
    setopt NO_GLOB_SUBST
13597
  fi
13598
  # Now quote all the things that may contain metacharacters while being
13599
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13600
  # variables and quote the copies for generation of the libtool script.
13601
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13602
    SED SHELL STRIP \
13603
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13604
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13605
    deplibs_check_method reload_flag reload_cmds need_locks \
13606
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13607
    lt_cv_sys_global_symbol_to_c_name_address \
13608
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13609
    old_postinstall_cmds old_postuninstall_cmds \
13610
    compiler_CXX \
13611
    CC_CXX \
13612
    LD_CXX \
13613
    lt_prog_compiler_wl_CXX \
13614
    lt_prog_compiler_pic_CXX \
13615
    lt_prog_compiler_static_CXX \
13616
    lt_prog_compiler_no_builtin_flag_CXX \
13617
    export_dynamic_flag_spec_CXX \
13618
    thread_safe_flag_spec_CXX \
13619
    whole_archive_flag_spec_CXX \
13620
    enable_shared_with_static_runtimes_CXX \
13621
    old_archive_cmds_CXX \
13622
    old_archive_from_new_cmds_CXX \
13623
    predep_objects_CXX \
13624
    postdep_objects_CXX \
13625
    predeps_CXX \
13626
    postdeps_CXX \
13627
    compiler_lib_search_path_CXX \
13628
    compiler_lib_search_dirs_CXX \
13629
    archive_cmds_CXX \
13630
    archive_expsym_cmds_CXX \
13631
    postinstall_cmds_CXX \
13632
    postuninstall_cmds_CXX \
13633
    old_archive_from_expsyms_cmds_CXX \
13634
    allow_undefined_flag_CXX \
13635
    no_undefined_flag_CXX \
13636
    export_symbols_cmds_CXX \
13637
    hardcode_libdir_flag_spec_CXX \
13638
    hardcode_libdir_flag_spec_ld_CXX \
13639
    hardcode_libdir_separator_CXX \
13640
    hardcode_automatic_CXX \
13641
    module_cmds_CXX \
13642
    module_expsym_cmds_CXX \
13643
    lt_cv_prog_compiler_c_o_CXX \
13644
    fix_srcfile_path_CXX \
13645
    exclude_expsyms_CXX \
13646
    include_expsyms_CXX; do
13647
13648
    case $var in
13649
    old_archive_cmds_CXX | \
13650
    old_archive_from_new_cmds_CXX | \
13651
    archive_cmds_CXX | \
13652
    archive_expsym_cmds_CXX | \
13653
    module_cmds_CXX | \
13654
    module_expsym_cmds_CXX | \
13655
    old_archive_from_expsyms_cmds_CXX | \
13656
    export_symbols_cmds_CXX | \
13657
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13658
    postinstall_cmds | postuninstall_cmds | \
13659
    old_postinstall_cmds | old_postuninstall_cmds | \
13660
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13661
      # Double-quote double-evaled strings.
13662
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13663
      ;;
13664
    *)
13665
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13666
      ;;
13667
    esac
13668
  done
13669
13670
  case $lt_echo in
13671
  *'\$0 --fallback-echo"')
13672
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13673
    ;;
13674
  esac
13675
13676
cfgfile="$ofile"
13677
13678
  cat <<__EOF__ >> "$cfgfile"
13679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13680
13681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13682
13683
# Shell to use when invoking shell scripts.
13684
SHELL=$lt_SHELL
13685
13686
# Whether or not to build shared libraries.
13687
build_libtool_libs=$enable_shared
13688
13689
# Whether or not to build static libraries.
13690
build_old_libs=$enable_static
13691
13692
# Whether or not to add -lc for building shared libraries.
13693
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13694
13695
# Whether or not to disallow shared libs when runtime libs are static
13696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13697
13698
# Whether or not to optimize for fast installation.
13699
fast_install=$enable_fast_install
13700
13701
# The host system.
13702
host_alias=$host_alias
13703
host=$host
13704
host_os=$host_os
13705
13706
# The build system.
13707
build_alias=$build_alias
13708
build=$build
13709
build_os=$build_os
13710
13711
# An echo program that does not interpret backslashes.
13712
echo=$lt_echo
13713
13714
# The archiver.
13715
AR=$lt_AR
13716
AR_FLAGS=$lt_AR_FLAGS
13717
13718
# A C compiler.
13719
LTCC=$lt_LTCC
13720
13721
# LTCC compiler flags.
13722
LTCFLAGS=$lt_LTCFLAGS
13723
13724
# A language-specific compiler.
13725
CC=$lt_compiler_CXX
13726
13727
# Is the compiler the GNU C compiler?
13728
with_gcc=$GCC_CXX
13729
13730
# An ERE matcher.
13731
EGREP=$lt_EGREP
13732
13733
# The linker used to build libraries.
13734
LD=$lt_LD_CXX
13735
13736
# Whether we need hard or soft links.
13737
LN_S=$lt_LN_S
13738
13739
# A BSD-compatible nm program.
13740
NM=$lt_NM
13741
13742
# A symbol stripping program
13743
STRIP=$lt_STRIP
13744
13745
# Used to examine libraries when file_magic_cmd begins "file"
13746
MAGIC_CMD=$MAGIC_CMD
13747
13748
# Used on cygwin: DLL creation program.
13749
DLLTOOL="$DLLTOOL"
13750
13751
# Used on cygwin: object dumper.
13752
OBJDUMP="$OBJDUMP"
13753
13754
# Used on cygwin: assembler.
13755
AS="$AS"
13756
13757
# The name of the directory that contains temporary libtool files.
13758
objdir=$objdir
13759
13760
# How to create reloadable object files.
13761
reload_flag=$lt_reload_flag
13762
reload_cmds=$lt_reload_cmds
13763
13764
# How to pass a linker flag through the compiler.
13765
wl=$lt_lt_prog_compiler_wl_CXX
13766
13767
# Object file suffix (normally "o").
13768
objext="$ac_objext"
13769
13770
# Old archive suffix (normally "a").
13771
libext="$libext"
13772
13773
# Shared library suffix (normally ".so").
13774
shrext_cmds='$shrext_cmds'
13775
13776
# Executable file suffix (normally "").
13777
exeext="$exeext"
13778
13779
# Additional compiler flags for building library objects.
13780
pic_flag=$lt_lt_prog_compiler_pic_CXX
13781
pic_mode=$pic_mode
13782
13783
# What is the maximum length of a command?
13784
max_cmd_len=$lt_cv_sys_max_cmd_len
13785
13786
# Does compiler simultaneously support -c and -o options?
13787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13788
13789
# Must we lock files when doing compilation?
13790
need_locks=$lt_need_locks
13791
13792
# Do we need the lib prefix for modules?
13793
need_lib_prefix=$need_lib_prefix
13794
13795
# Do we need a version for libraries?
13796
need_version=$need_version
13797
13798
# Whether dlopen is supported.
13799
dlopen_support=$enable_dlopen
13800
13801
# Whether dlopen of programs is supported.
13802
dlopen_self=$enable_dlopen_self
13803
13804
# Whether dlopen of statically linked programs is supported.
13805
dlopen_self_static=$enable_dlopen_self_static
13806
13807
# Compiler flag to prevent dynamic linking.
13808
link_static_flag=$lt_lt_prog_compiler_static_CXX
13809
13810
# Compiler flag to turn off builtin functions.
13811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13812
13813
# Compiler flag to allow reflexive dlopens.
13814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13815
13816
# Compiler flag to generate shared objects directly from archives.
13817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13818
13819
# Compiler flag to generate thread-safe objects.
13820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13821
13822
# Library versioning type.
13823
version_type=$version_type
13824
13825
# Format of library name prefix.
13826
libname_spec=$lt_libname_spec
13827
13828
# List of archive names.  First name is the real one, the rest are links.
13829
# The last name is the one that the linker finds with -lNAME.
13830
library_names_spec=$lt_library_names_spec
13831
13832
# The coded name of the library, if different from the real name.
13833
soname_spec=$lt_soname_spec
13834
13835
# Commands used to build and install an old-style archive.
13836
RANLIB=$lt_RANLIB
13837
old_archive_cmds=$lt_old_archive_cmds_CXX
13838
old_postinstall_cmds=$lt_old_postinstall_cmds
13839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13840
13841
# Create an old-style archive from a shared archive.
13842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13843
13844
# Create a temporary old-style archive to link instead of a shared archive.
13845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13846
13847
# Commands used to build and install a shared archive.
13848
archive_cmds=$lt_archive_cmds_CXX
13849
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13850
postinstall_cmds=$lt_postinstall_cmds
13851
postuninstall_cmds=$lt_postuninstall_cmds
13852
13853
# Commands used to build a loadable module (assumed same as above if empty)
13854
module_cmds=$lt_module_cmds_CXX
13855
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13856
13857
# Commands to strip libraries.
13858
old_striplib=$lt_old_striplib
13859
striplib=$lt_striplib
13860
13861
# Dependencies to place before the objects being linked to create a
13862
# shared library.
13863
predep_objects=$lt_predep_objects_CXX
13864
13865
# Dependencies to place after the objects being linked to create a
13866
# shared library.
13867
postdep_objects=$lt_postdep_objects_CXX
13868
13869
# Dependencies to place before the objects being linked to create a
13870
# shared library.
13871
predeps=$lt_predeps_CXX
13872
13873
# Dependencies to place after the objects being linked to create a
13874
# shared library.
13875
postdeps=$lt_postdeps_CXX
13876
13877
# The directories searched by this compiler when creating a shared
13878
# library
13879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13880
13881
# The library search path used internally by the compiler when linking
13882
# a shared library.
13883
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13884
13885
# Method to check whether dependent libraries are shared objects.
13886
deplibs_check_method=$lt_deplibs_check_method
13887
13888
# Command to use when deplibs_check_method == file_magic.
13889
file_magic_cmd=$lt_file_magic_cmd
13890
13891
# Flag that allows shared libraries with undefined symbols to be built.
13892
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13893
13894
# Flag that forces no undefined symbols.
13895
no_undefined_flag=$lt_no_undefined_flag_CXX
13896
13897
# Commands used to finish a libtool library installation in a directory.
13898
finish_cmds=$lt_finish_cmds
13899
13900
# Same as above, but a single script fragment to be evaled but not shown.
13901
finish_eval=$lt_finish_eval
13902
13903
# Take the output of nm and produce a listing of raw symbols and C names.
13904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13905
13906
# Transform the output of nm in a proper C declaration
13907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13908
13909
# Transform the output of nm in a C name address pair
13910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13911
13912
# This is the shared library runtime path variable.
13913
runpath_var=$runpath_var
13914
13915
# This is the shared library path variable.
13916
shlibpath_var=$shlibpath_var
13917
13918
# Is shlibpath searched before the hard-coded library search path?
13919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13920
13921
# How to hardcode a shared library path into an executable.
13922
hardcode_action=$hardcode_action_CXX
13923
13924
# Whether we should hardcode library paths into libraries.
13925
hardcode_into_libs=$hardcode_into_libs
13926
13927
# Flag to hardcode \$libdir into a binary during linking.
13928
# This must work even if \$libdir does not exist.
13929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13930
13931
# If ld is used when linking, flag to hardcode \$libdir into
13932
# a binary during linking. This must work even if \$libdir does
13933
# not exist.
13934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13935
13936
# Whether we need a single -rpath flag with a separated argument.
13937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13938
13939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13940
# resulting binary.
13941
hardcode_direct=$hardcode_direct_CXX
13942
13943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13944
# resulting binary.
13945
hardcode_minus_L=$hardcode_minus_L_CXX
13946
13947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13948
# the resulting binary.
13949
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13950
13951
# Set to yes if building a shared library automatically hardcodes DIR into the library
13952
# and all subsequent libraries and executables linked against it.
13953
hardcode_automatic=$hardcode_automatic_CXX
13954
13955
# Variables whose values should be saved in libtool wrapper scripts and
13956
# restored at relink time.
13957
variables_saved_for_relink="$variables_saved_for_relink"
13958
13959
# Whether libtool must link a program against all its dependency libraries.
13960
link_all_deplibs=$link_all_deplibs_CXX
13961
13962
# Compile-time system search path for libraries
13963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13964
13965
# Run-time system search path for libraries
13966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13967
13968
# Fix the shell variable \$srcfile for the compiler.
13969
fix_srcfile_path=$lt_fix_srcfile_path
13970
13971
# Set to yes if exported symbols are required.
13972
always_export_symbols=$always_export_symbols_CXX
13973
13974
# The commands to list exported symbols.
13975
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13976
13977
# The commands to extract the exported symbol list from a shared archive.
13978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13979
13980
# Symbols that should not be listed in the preloaded symbols.
13981
exclude_expsyms=$lt_exclude_expsyms_CXX
13982
13983
# Symbols that must always be exported.
13984
include_expsyms=$lt_include_expsyms_CXX
13985
13986
# ### END LIBTOOL TAG CONFIG: $tagname
13987
13988
__EOF__
13989
13990
13991
else
13992
  # If there is no Makefile yet, we rely on a make rule to execute
13993
  # `config.status --recheck' to rerun these tests and create the
13994
  # libtool script then.
13995
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13996
  if test -f "$ltmain_in"; then
13997
    test -f Makefile && make "$ltmain"
13998
  fi
13999
fi
14000
14001
14002
ac_ext=c
14003
ac_cpp='$CPP $CPPFLAGS'
14004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007
14008
CC=$lt_save_CC
14009
LDCXX=$LD
14010
LD=$lt_save_LD
14011
GCC=$lt_save_GCC
14012
with_gnu_ldcxx=$with_gnu_ld
14013
with_gnu_ld=$lt_save_with_gnu_ld
14014
lt_cv_path_LDCXX=$lt_cv_path_LD
14015
lt_cv_path_LD=$lt_save_path_LD
14016
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14017
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14018
14019
	else
14020
	  tagname=""
14021
	fi
14022
	;;
14023
14024
      F77)
14025
	if test -n "$F77" && test "X$F77" != "Xno"; then
14026
14027
ac_ext=f
14028
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14029
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14030
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14031
14032
14033
archive_cmds_need_lc_F77=no
14034
allow_undefined_flag_F77=
14035
always_export_symbols_F77=no
14036
archive_expsym_cmds_F77=
14037
export_dynamic_flag_spec_F77=
14038
hardcode_direct_F77=no
14039
hardcode_libdir_flag_spec_F77=
14040
hardcode_libdir_flag_spec_ld_F77=
14041
hardcode_libdir_separator_F77=
14042
hardcode_minus_L_F77=no
14043
hardcode_automatic_F77=no
14044
module_cmds_F77=
14045
module_expsym_cmds_F77=
14046
link_all_deplibs_F77=unknown
14047
old_archive_cmds_F77=$old_archive_cmds
14048
no_undefined_flag_F77=
14049
whole_archive_flag_spec_F77=
14050
enable_shared_with_static_runtimes_F77=no
14051
14052
# Source file extension for f77 test sources.
14053
ac_ext=f
14054
14055
# Object file extension for compiled f77 test sources.
14056
objext=o
14057
objext_F77=$objext
14058
14059
# Code to be used in simple compile tests
14060
lt_simple_compile_test_code="\
14061
      subroutine t
14062
      return
14063
      end
14064
"
14065
14066
# Code to be used in simple link tests
14067
lt_simple_link_test_code="\
14068
      program t
14069
      end
14070
"
14071
14072
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14073
14074
# If no C compiler was specified, use CC.
14075
LTCC=${LTCC-"$CC"}
14076
14077
# If no C compiler flags were specified, use CFLAGS.
14078
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14079
14080
# Allow CC to be a program name with arguments.
14081
compiler=$CC
14082
14083
14084
# save warnings/boilerplate of simple test code
14085
ac_outfile=conftest.$ac_objext
14086
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14087
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088
_lt_compiler_boilerplate=`cat conftest.err`
14089
$rm conftest*
14090
14091
ac_outfile=conftest.$ac_objext
14092
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14093
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14094
_lt_linker_boilerplate=`cat conftest.err`
14095
$rm -r conftest*
14096
14097
14098
# Allow CC to be a program name with arguments.
14099
lt_save_CC="$CC"
14100
CC=${F77-"f77"}
14101
compiler=$CC
14102
compiler_F77=$CC
14103
for cc_temp in $compiler""; do
14104
  case $cc_temp in
14105
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14106
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14107
    \-*) ;;
14108
    *) break;;
14109
  esac
14110
done
14111
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14112
14113
14114
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14115
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14116
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14117
echo "${ECHO_T}$can_build_shared" >&6; }
14118
14119
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14120
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14121
test "$can_build_shared" = "no" && enable_shared=no
14122
14123
# On AIX, shared libraries and static libraries use the same namespace, and
14124
# are all built from PIC.
14125
case $host_os in
14126
aix3*)
14127
  test "$enable_shared" = yes && enable_static=no
14128
  if test -n "$RANLIB"; then
14129
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14130
    postinstall_cmds='$RANLIB $lib'
14131
  fi
14132
  ;;
14133
aix[4-9]*)
14134
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14135
    test "$enable_shared" = yes && enable_static=no
14136
  fi
14137
  ;;
14138
esac
14139
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14140
echo "${ECHO_T}$enable_shared" >&6; }
14141
14142
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14143
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14144
# Make sure either enable_shared or enable_static is yes.
14145
test "$enable_shared" = yes || enable_static=yes
14146
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14147
echo "${ECHO_T}$enable_static" >&6; }
14148
14149
GCC_F77="$G77"
14150
LD_F77="$LD"
14151
14152
lt_prog_compiler_wl_F77=
14153
lt_prog_compiler_pic_F77=
14154
lt_prog_compiler_static_F77=
14155
14156
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14157
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14158
14159
  if test "$GCC" = yes; then
14160
    lt_prog_compiler_wl_F77='-Wl,'
14161
    lt_prog_compiler_static_F77='-static'
14162
14163
    case $host_os in
14164
      aix*)
14165
      # All AIX code is PIC.
14166
      if test "$host_cpu" = ia64; then
14167
	# AIX 5 now supports IA64 processor
14168
	lt_prog_compiler_static_F77='-Bstatic'
14169
      fi
14170
      ;;
14171
14172
    amigaos*)
14173
      # FIXME: we need at least 68020 code to build shared libraries, but
14174
      # adding the `-m68020' flag to GCC prevents building anything better,
14175
      # like `-m68040'.
14176
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14177
      ;;
14178
14179
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14180
      # PIC is the default for these OSes.
14181
      ;;
14182
14183
    mingw* | cygwin* | pw32* | os2*)
14184
      # This hack is so that the source file can tell whether it is being
14185
      # built for inclusion in a dll (and should export symbols for example).
14186
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14187
      # (--disable-auto-import) libraries
14188
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14189
      ;;
14190
14191
    darwin* | rhapsody*)
14192
      # PIC is the default on this platform
14193
      # Common symbols not allowed in MH_DYLIB files
14194
      lt_prog_compiler_pic_F77='-fno-common'
14195
      ;;
14196
14197
    interix[3-9]*)
14198
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14199
      # Instead, we relocate shared libraries at runtime.
14200
      ;;
14201
14202
    msdosdjgpp*)
14203
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14204
      # on systems that don't support them.
14205
      lt_prog_compiler_can_build_shared_F77=no
14206
      enable_shared=no
14207
      ;;
14208
14209
    sysv4*MP*)
14210
      if test -d /usr/nec; then
14211
	lt_prog_compiler_pic_F77=-Kconform_pic
14212
      fi
14213
      ;;
14214
14215
    hpux*)
14216
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14217
      # not for PA HP-UX.
14218
      case $host_cpu in
14219
      hppa*64*|ia64*)
14220
	# +Z the default
14221
	;;
14222
      *)
14223
	lt_prog_compiler_pic_F77='-fPIC'
14224
	;;
14225
      esac
14226
      ;;
14227
14228
    *)
14229
      lt_prog_compiler_pic_F77='-fPIC'
14230
      ;;
14231
    esac
14232
  else
14233
    # PORTME Check for flag to pass linker flags through the system compiler.
14234
    case $host_os in
14235
    aix*)
14236
      lt_prog_compiler_wl_F77='-Wl,'
14237
      if test "$host_cpu" = ia64; then
14238
	# AIX 5 now supports IA64 processor
14239
	lt_prog_compiler_static_F77='-Bstatic'
14240
      else
14241
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14242
      fi
14243
      ;;
14244
      darwin*)
14245
        # PIC is the default on this platform
14246
        # Common symbols not allowed in MH_DYLIB files
14247
       case $cc_basename in
14248
         xlc*)
14249
         lt_prog_compiler_pic_F77='-qnocommon'
14250
         lt_prog_compiler_wl_F77='-Wl,'
14251
         ;;
14252
       esac
14253
       ;;
14254
14255
    mingw* | cygwin* | pw32* | os2*)
14256
      # This hack is so that the source file can tell whether it is being
14257
      # built for inclusion in a dll (and should export symbols for example).
14258
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14259
      ;;
14260
14261
    hpux9* | hpux10* | hpux11*)
14262
      lt_prog_compiler_wl_F77='-Wl,'
14263
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14264
      # not for PA HP-UX.
14265
      case $host_cpu in
14266
      hppa*64*|ia64*)
14267
	# +Z the default
14268
	;;
14269
      *)
14270
	lt_prog_compiler_pic_F77='+Z'
14271
	;;
14272
      esac
14273
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14274
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14275
      ;;
14276
14277
    irix5* | irix6* | nonstopux*)
14278
      lt_prog_compiler_wl_F77='-Wl,'
14279
      # PIC (with -KPIC) is the default.
14280
      lt_prog_compiler_static_F77='-non_shared'
14281
      ;;
14282
14283
    newsos6)
14284
      lt_prog_compiler_pic_F77='-KPIC'
14285
      lt_prog_compiler_static_F77='-Bstatic'
14286
      ;;
14287
14288
    linux* | k*bsd*-gnu)
14289
      case $cc_basename in
14290
      icc* | ecc*)
14291
	lt_prog_compiler_wl_F77='-Wl,'
14292
	lt_prog_compiler_pic_F77='-KPIC'
14293
	lt_prog_compiler_static_F77='-static'
14294
        ;;
14295
      pgcc* | pgf77* | pgf90* | pgf95*)
14296
        # Portland Group compilers (*not* the Pentium gcc compiler,
14297
	# which looks to be a dead project)
14298
	lt_prog_compiler_wl_F77='-Wl,'
14299
	lt_prog_compiler_pic_F77='-fpic'
14300
	lt_prog_compiler_static_F77='-Bstatic'
14301
        ;;
14302
      ccc*)
14303
        lt_prog_compiler_wl_F77='-Wl,'
14304
        # All Alpha code is PIC.
14305
        lt_prog_compiler_static_F77='-non_shared'
14306
        ;;
14307
      *)
14308
        case `$CC -V 2>&1 | sed 5q` in
14309
	*Sun\ C*)
14310
	  # Sun C 5.9
14311
	  lt_prog_compiler_pic_F77='-KPIC'
14312
	  lt_prog_compiler_static_F77='-Bstatic'
14313
	  lt_prog_compiler_wl_F77='-Wl,'
14314
	  ;;
14315
	*Sun\ F*)
14316
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14317
	  lt_prog_compiler_pic_F77='-KPIC'
14318
	  lt_prog_compiler_static_F77='-Bstatic'
14319
	  lt_prog_compiler_wl_F77=''
14320
	  ;;
14321
	esac
14322
	;;
14323
      esac
14324
      ;;
14325
14326
    osf3* | osf4* | osf5*)
14327
      lt_prog_compiler_wl_F77='-Wl,'
14328
      # All OSF/1 code is PIC.
14329
      lt_prog_compiler_static_F77='-non_shared'
14330
      ;;
14331
14332
    rdos*)
14333
      lt_prog_compiler_static_F77='-non_shared'
14334
      ;;
14335
14336
    solaris*)
14337
      lt_prog_compiler_pic_F77='-KPIC'
14338
      lt_prog_compiler_static_F77='-Bstatic'
14339
      case $cc_basename in
14340
      f77* | f90* | f95*)
14341
	lt_prog_compiler_wl_F77='-Qoption ld ';;
14342
      *)
14343
	lt_prog_compiler_wl_F77='-Wl,';;
14344
      esac
14345
      ;;
14346
14347
    sunos4*)
14348
      lt_prog_compiler_wl_F77='-Qoption ld '
14349
      lt_prog_compiler_pic_F77='-PIC'
14350
      lt_prog_compiler_static_F77='-Bstatic'
14351
      ;;
14352
14353
    sysv4 | sysv4.2uw2* | sysv4.3*)
14354
      lt_prog_compiler_wl_F77='-Wl,'
14355
      lt_prog_compiler_pic_F77='-KPIC'
14356
      lt_prog_compiler_static_F77='-Bstatic'
14357
      ;;
14358
14359
    sysv4*MP*)
14360
      if test -d /usr/nec ;then
14361
	lt_prog_compiler_pic_F77='-Kconform_pic'
14362
	lt_prog_compiler_static_F77='-Bstatic'
14363
      fi
14364
      ;;
14365
14366
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14367
      lt_prog_compiler_wl_F77='-Wl,'
14368
      lt_prog_compiler_pic_F77='-KPIC'
14369
      lt_prog_compiler_static_F77='-Bstatic'
14370
      ;;
14371
14372
    unicos*)
14373
      lt_prog_compiler_wl_F77='-Wl,'
14374
      lt_prog_compiler_can_build_shared_F77=no
14375
      ;;
14376
14377
    uts4*)
14378
      lt_prog_compiler_pic_F77='-pic'
14379
      lt_prog_compiler_static_F77='-Bstatic'
14380
      ;;
14381
14382
    *)
14383
      lt_prog_compiler_can_build_shared_F77=no
14384
      ;;
14385
    esac
14386
  fi
14387
14388
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14389
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14390
14391
#
14392
# Check to make sure the PIC flag actually works.
14393
#
14394
if test -n "$lt_prog_compiler_pic_F77"; then
14395
14396
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14397
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14398
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14399
  echo $ECHO_N "(cached) $ECHO_C" >&6
14400
else
14401
  lt_cv_prog_compiler_pic_works_F77=no
14402
  ac_outfile=conftest.$ac_objext
14403
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14405
   # Insert the option either (1) after the last *FLAGS variable, or
14406
   # (2) before a word containing "conftest.", or (3) at the end.
14407
   # Note that $ac_compile itself does not contain backslashes and begins
14408
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14409
   # The option is referenced via a variable to avoid confusing sed.
14410
   lt_compile=`echo "$ac_compile" | $SED \
14411
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413
   -e 's:$: $lt_compiler_flag:'`
14414
   (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415
   (eval "$lt_compile" 2>conftest.err)
14416
   ac_status=$?
14417
   cat conftest.err >&5
14418
   echo "$as_me:14418: \$? = $ac_status" >&5
14419
   if (exit $ac_status) && test -s "$ac_outfile"; then
14420
     # The compiler can only warn and ignore the option if not recognized
14421
     # So say no if there are warnings other than the usual output.
14422
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14423
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14425
       lt_cv_prog_compiler_pic_works_F77=yes
14426
     fi
14427
   fi
14428
   $rm conftest*
14429
14430
fi
14431
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14432
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14433
14434
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14435
    case $lt_prog_compiler_pic_F77 in
14436
     "" | " "*) ;;
14437
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14438
     esac
14439
else
14440
    lt_prog_compiler_pic_F77=
14441
     lt_prog_compiler_can_build_shared_F77=no
14442
fi
14443
14444
fi
14445
case $host_os in
14446
  # For platforms which do not support PIC, -DPIC is meaningless:
14447
  *djgpp*)
14448
    lt_prog_compiler_pic_F77=
14449
    ;;
14450
  *)
14451
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14452
    ;;
14453
esac
14454
14455
#
14456
# Check to make sure the static flag actually works.
14457
#
14458
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14459
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14460
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14461
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14462
  echo $ECHO_N "(cached) $ECHO_C" >&6
14463
else
14464
  lt_cv_prog_compiler_static_works_F77=no
14465
   save_LDFLAGS="$LDFLAGS"
14466
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14467
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14468
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14469
     # The linker can only warn and ignore the option if not recognized
14470
     # So say no if there are warnings
14471
     if test -s conftest.err; then
14472
       # Append any errors to the config.log.
14473
       cat conftest.err 1>&5
14474
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14475
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476
       if diff conftest.exp conftest.er2 >/dev/null; then
14477
         lt_cv_prog_compiler_static_works_F77=yes
14478
       fi
14479
     else
14480
       lt_cv_prog_compiler_static_works_F77=yes
14481
     fi
14482
   fi
14483
   $rm -r conftest*
14484
   LDFLAGS="$save_LDFLAGS"
14485
14486
fi
14487
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14488
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14489
14490
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14491
    :
14492
else
14493
    lt_prog_compiler_static_F77=
14494
fi
14495
14496
14497
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14498
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14499
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14500
  echo $ECHO_N "(cached) $ECHO_C" >&6
14501
else
14502
  lt_cv_prog_compiler_c_o_F77=no
14503
   $rm -r conftest 2>/dev/null
14504
   mkdir conftest
14505
   cd conftest
14506
   mkdir out
14507
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14508
14509
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14510
   # Insert the option either (1) after the last *FLAGS variable, or
14511
   # (2) before a word containing "conftest.", or (3) at the end.
14512
   # Note that $ac_compile itself does not contain backslashes and begins
14513
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14514
   lt_compile=`echo "$ac_compile" | $SED \
14515
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517
   -e 's:$: $lt_compiler_flag:'`
14518
   (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519
   (eval "$lt_compile" 2>out/conftest.err)
14520
   ac_status=$?
14521
   cat out/conftest.err >&5
14522
   echo "$as_me:14522: \$? = $ac_status" >&5
14523
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14524
   then
14525
     # The compiler can only warn and ignore the option if not recognized
14526
     # So say no if there are warnings
14527
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14528
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14529
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14530
       lt_cv_prog_compiler_c_o_F77=yes
14531
     fi
14532
   fi
14533
   chmod u+w . 2>&5
14534
   $rm conftest*
14535
   # SGI C++ compiler will create directory out/ii_files/ for
14536
   # template instantiation
14537
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14538
   $rm out/* && rmdir out
14539
   cd ..
14540
   rmdir conftest
14541
   $rm conftest*
14542
14543
fi
14544
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14545
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14546
14547
14548
hard_links="nottested"
14549
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14550
  # do not overwrite the value of need_locks provided by the user
14551
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14552
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14553
  hard_links=yes
14554
  $rm conftest*
14555
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556
  touch conftest.a
14557
  ln conftest.a conftest.b 2>&5 || hard_links=no
14558
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14560
echo "${ECHO_T}$hard_links" >&6; }
14561
  if test "$hard_links" = no; then
14562
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14563
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14564
    need_locks=warn
14565
  fi
14566
else
14567
  need_locks=no
14568
fi
14569
14570
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14571
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14572
14573
  runpath_var=
14574
  allow_undefined_flag_F77=
14575
  enable_shared_with_static_runtimes_F77=no
14576
  archive_cmds_F77=
14577
  archive_expsym_cmds_F77=
14578
  old_archive_From_new_cmds_F77=
14579
  old_archive_from_expsyms_cmds_F77=
14580
  export_dynamic_flag_spec_F77=
14581
  whole_archive_flag_spec_F77=
14582
  thread_safe_flag_spec_F77=
14583
  hardcode_libdir_flag_spec_F77=
14584
  hardcode_libdir_flag_spec_ld_F77=
14585
  hardcode_libdir_separator_F77=
14586
  hardcode_direct_F77=no
14587
  hardcode_minus_L_F77=no
14588
  hardcode_shlibpath_var_F77=unsupported
14589
  link_all_deplibs_F77=unknown
14590
  hardcode_automatic_F77=no
14591
  module_cmds_F77=
14592
  module_expsym_cmds_F77=
14593
  always_export_symbols_F77=no
14594
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595
  # include_expsyms should be a list of space-separated symbols to be *always*
14596
  # included in the symbol list
14597
  include_expsyms_F77=
14598
  # exclude_expsyms can be an extended regexp of symbols to exclude
14599
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14600
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14601
  # as well as any symbol that contains `d'.
14602
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14603
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14604
  # platforms (ab)use it in PIC code, but their linkers get confused if
14605
  # the symbol is explicitly referenced.  Since portable code cannot
14606
  # rely on this symbol name, it's probably fine to never include it in
14607
  # preloaded symbol tables.
14608
  # Exclude shared library initialization/finalization symbols.
14609
  extract_expsyms_cmds=
14610
  # Just being paranoid about ensuring that cc_basename is set.
14611
  for cc_temp in $compiler""; do
14612
  case $cc_temp in
14613
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14614
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14615
    \-*) ;;
14616
    *) break;;
14617
  esac
14618
done
14619
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14620
14621
  case $host_os in
14622
  cygwin* | mingw* | pw32*)
14623
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14624
    # When not using gcc, we currently assume that we are using
14625
    # Microsoft Visual C++.
14626
    if test "$GCC" != yes; then
14627
      with_gnu_ld=no
14628
    fi
14629
    ;;
14630
  interix*)
14631
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14632
    with_gnu_ld=yes
14633
    ;;
14634
  openbsd*)
14635
    with_gnu_ld=no
14636
    ;;
14637
  esac
14638
14639
  ld_shlibs_F77=yes
14640
  if test "$with_gnu_ld" = yes; then
14641
    # If archive_cmds runs LD, not CC, wlarc should be empty
14642
    wlarc='${wl}'
14643
14644
    # Set some defaults for GNU ld with shared library support. These
14645
    # are reset later if shared libraries are not supported. Putting them
14646
    # here allows them to be overridden if necessary.
14647
    runpath_var=LD_RUN_PATH
14648
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14649
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14650
    # ancient GNU ld didn't support --whole-archive et. al.
14651
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14652
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14653
      else
14654
  	whole_archive_flag_spec_F77=
14655
    fi
14656
    supports_anon_versioning=no
14657
    case `$LD -v 2>/dev/null` in
14658
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14659
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14660
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14661
      *\ 2.11.*) ;; # other 2.11 versions
14662
      *) supports_anon_versioning=yes ;;
14663
    esac
14664
14665
    # See if GNU ld supports shared libraries.
14666
    case $host_os in
14667
    aix[3-9]*)
14668
      # On AIX/PPC, the GNU linker is very broken
14669
      if test "$host_cpu" != ia64; then
14670
	ld_shlibs_F77=no
14671
	cat <<EOF 1>&2
14672
14673
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14674
*** to be unable to reliably create shared libraries on AIX.
14675
*** Therefore, libtool is disabling shared libraries support.  If you
14676
*** really care for shared libraries, you may want to modify your PATH
14677
*** so that a non-GNU linker is found, and then restart.
14678
14679
EOF
14680
      fi
14681
      ;;
14682
14683
    amigaos*)
14684
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14685
      hardcode_libdir_flag_spec_F77='-L$libdir'
14686
      hardcode_minus_L_F77=yes
14687
14688
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14689
      # that the semantics of dynamic libraries on AmigaOS, at least up
14690
      # to version 4, is to share data among multiple programs linked
14691
      # with the same dynamic library.  Since this doesn't match the
14692
      # behavior of shared libraries on other platforms, we can't use
14693
      # them.
14694
      ld_shlibs_F77=no
14695
      ;;
14696
14697
    beos*)
14698
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14699
	allow_undefined_flag_F77=unsupported
14700
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14701
	# support --undefined.  This deserves some investigation.  FIXME
14702
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703
      else
14704
	ld_shlibs_F77=no
14705
      fi
14706
      ;;
14707
14708
    cygwin* | mingw* | pw32*)
14709
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14710
      # as there is no search path for DLLs.
14711
      hardcode_libdir_flag_spec_F77='-L$libdir'
14712
      allow_undefined_flag_F77=unsupported
14713
      always_export_symbols_F77=no
14714
      enable_shared_with_static_runtimes_F77=yes
14715
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14716
14717
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14718
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14719
	# If the export-symbols file already is a .def file (1st line
14720
	# is EXPORTS), use it as is; otherwise, prepend...
14721
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14722
	  cp $export_symbols $output_objdir/$soname.def;
14723
	else
14724
	  echo EXPORTS > $output_objdir/$soname.def;
14725
	  cat $export_symbols >> $output_objdir/$soname.def;
14726
	fi~
14727
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14728
      else
14729
	ld_shlibs_F77=no
14730
      fi
14731
      ;;
14732
14733
    interix[3-9]*)
14734
      hardcode_direct_F77=no
14735
      hardcode_shlibpath_var_F77=no
14736
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14737
      export_dynamic_flag_spec_F77='${wl}-E'
14738
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14739
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14740
      # default) and relocated if they conflict, which is a slow very memory
14741
      # consuming and fragmenting process.  To avoid this, we pick a random,
14742
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14743
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14744
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14745
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14746
      ;;
14747
14748
    gnu* | linux* | k*bsd*-gnu)
14749
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14750
	tmp_addflag=
14751
	case $cc_basename,$host_cpu in
14752
	pgcc*)				# Portland Group C compiler
14753
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14754
	  tmp_addflag=' $pic_flag'
14755
	  ;;
14756
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14757
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14758
	  tmp_addflag=' $pic_flag -Mnomain' ;;
14759
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14760
	  tmp_addflag=' -i_dynamic' ;;
14761
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14762
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14763
	ifc* | ifort*)			# Intel Fortran compiler
14764
	  tmp_addflag=' -nofor_main' ;;
14765
	esac
14766
	case `$CC -V 2>&1 | sed 5q` in
14767
	*Sun\ C*)			# Sun C 5.9
14768
	  whole_archive_flag_spec_F77='${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'
14769
	  tmp_sharedflag='-G' ;;
14770
	*Sun\ F*)			# Sun Fortran 8.3
14771
	  tmp_sharedflag='-G' ;;
14772
	*)
14773
	  tmp_sharedflag='-shared' ;;
14774
	esac
14775
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776
14777
	if test $supports_anon_versioning = yes; then
14778
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14779
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14780
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14781
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14782
	fi
14783
	link_all_deplibs_F77=no
14784
      else
14785
	ld_shlibs_F77=no
14786
      fi
14787
      ;;
14788
14789
    netbsd* | netbsdelf*-gnu)
14790
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14791
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14792
	wlarc=
14793
      else
14794
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14796
      fi
14797
      ;;
14798
14799
    solaris*)
14800
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14801
	ld_shlibs_F77=no
14802
	cat <<EOF 1>&2
14803
14804
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14805
*** create shared libraries on Solaris systems.  Therefore, libtool
14806
*** is disabling shared libraries support.  We urge you to upgrade GNU
14807
*** binutils to release 2.9.1 or newer.  Another option is to modify
14808
*** your PATH or compiler configuration so that the native linker is
14809
*** used, and then restart.
14810
14811
EOF
14812
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14815
      else
14816
	ld_shlibs_F77=no
14817
      fi
14818
      ;;
14819
14820
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14821
      case `$LD -v 2>&1` in
14822
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14823
	ld_shlibs_F77=no
14824
	cat <<_LT_EOF 1>&2
14825
14826
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14827
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14828
*** is disabling shared libraries support.  We urge you to upgrade GNU
14829
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14830
*** your PATH or compiler configuration so that the native linker is
14831
*** used, and then restart.
14832
14833
_LT_EOF
14834
	;;
14835
	*)
14836
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14838
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14839
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14840
	  else
14841
	    ld_shlibs_F77=no
14842
	  fi
14843
	;;
14844
      esac
14845
      ;;
14846
14847
    sunos4*)
14848
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14849
      wlarc=
14850
      hardcode_direct_F77=yes
14851
      hardcode_shlibpath_var_F77=no
14852
      ;;
14853
14854
    *)
14855
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14856
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14858
      else
14859
	ld_shlibs_F77=no
14860
      fi
14861
      ;;
14862
    esac
14863
14864
    if test "$ld_shlibs_F77" = no; then
14865
      runpath_var=
14866
      hardcode_libdir_flag_spec_F77=
14867
      export_dynamic_flag_spec_F77=
14868
      whole_archive_flag_spec_F77=
14869
    fi
14870
  else
14871
    # PORTME fill in a description of your system's linker (not GNU ld)
14872
    case $host_os in
14873
    aix3*)
14874
      allow_undefined_flag_F77=unsupported
14875
      always_export_symbols_F77=yes
14876
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14877
      # Note: this linker hardcodes the directories in LIBPATH if there
14878
      # are no directories specified by -L.
14879
      hardcode_minus_L_F77=yes
14880
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14881
	# Neither direct hardcoding nor static linking is supported with a
14882
	# broken collect2.
14883
	hardcode_direct_F77=unsupported
14884
      fi
14885
      ;;
14886
14887
    aix[4-9]*)
14888
      if test "$host_cpu" = ia64; then
14889
	# On IA64, the linker does run time linking by default, so we don't
14890
	# have to do anything special.
14891
	aix_use_runtimelinking=no
14892
	exp_sym_flag='-Bexport'
14893
	no_entry_flag=""
14894
      else
14895
	# If we're using GNU nm, then we don't want the "-C" option.
14896
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14897
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14898
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14899
	else
14900
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14901
	fi
14902
	aix_use_runtimelinking=no
14903
14904
	# Test if we are trying to use run time linking or normal
14905
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14906
	# need to do runtime linking.
14907
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14908
	  for ld_flag in $LDFLAGS; do
14909
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14910
  	    aix_use_runtimelinking=yes
14911
  	    break
14912
  	  fi
14913
	  done
14914
	  ;;
14915
	esac
14916
14917
	exp_sym_flag='-bexport'
14918
	no_entry_flag='-bnoentry'
14919
      fi
14920
14921
      # When large executables or shared objects are built, AIX ld can
14922
      # have problems creating the table of contents.  If linking a library
14923
      # or program results in "error TOC overflow" add -mminimal-toc to
14924
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14925
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14926
14927
      archive_cmds_F77=''
14928
      hardcode_direct_F77=yes
14929
      hardcode_libdir_separator_F77=':'
14930
      link_all_deplibs_F77=yes
14931
14932
      if test "$GCC" = yes; then
14933
	case $host_os in aix4.[012]|aix4.[012].*)
14934
	# We only want to do this on AIX 4.2 and lower, the check
14935
	# below for broken collect2 doesn't work under 4.3+
14936
	  collect2name=`${CC} -print-prog-name=collect2`
14937
	  if test -f "$collect2name" && \
14938
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14939
	  then
14940
  	  # We have reworked collect2
14941
  	  :
14942
	  else
14943
  	  # We have old collect2
14944
  	  hardcode_direct_F77=unsupported
14945
  	  # It fails to find uninstalled libraries when the uninstalled
14946
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14947
  	  # to unsupported forces relinking
14948
  	  hardcode_minus_L_F77=yes
14949
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14950
  	  hardcode_libdir_separator_F77=
14951
	  fi
14952
	  ;;
14953
	esac
14954
	shared_flag='-shared'
14955
	if test "$aix_use_runtimelinking" = yes; then
14956
	  shared_flag="$shared_flag "'${wl}-G'
14957
	fi
14958
      else
14959
	# not using gcc
14960
	if test "$host_cpu" = ia64; then
14961
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14962
  	# chokes on -Wl,-G. The following line is correct:
14963
	  shared_flag='-G'
14964
	else
14965
	  if test "$aix_use_runtimelinking" = yes; then
14966
	    shared_flag='${wl}-G'
14967
	  else
14968
	    shared_flag='${wl}-bM:SRE'
14969
	  fi
14970
	fi
14971
      fi
14972
14973
      # It seems that -bexpall does not export symbols beginning with
14974
      # underscore (_), so it is better to generate a list of symbols to export.
14975
      always_export_symbols_F77=yes
14976
      if test "$aix_use_runtimelinking" = yes; then
14977
	# Warning - without using the other runtime loading flags (-brtl),
14978
	# -berok will link without error, but may produce a broken library.
14979
	allow_undefined_flag_F77='-berok'
14980
       # Determine the default libpath from the value encoded in an empty executable.
14981
       cat >conftest.$ac_ext <<_ACEOF
14982
      program main
14983
14984
      end
14985
_ACEOF
14986
rm -f conftest.$ac_objext conftest$ac_exeext
14987
if { (ac_try="$ac_link"
14988
case "(($ac_try" in
14989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990
  *) ac_try_echo=$ac_try;;
14991
esac
14992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993
  (eval "$ac_link") 2>conftest.er1
14994
  ac_status=$?
14995
  grep -v '^ *+' conftest.er1 >conftest.err
14996
  rm -f conftest.er1
14997
  cat conftest.err >&5
14998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999
  (exit $ac_status); } && {
15000
	 test -z "$ac_f77_werror_flag" ||
15001
	 test ! -s conftest.err
15002
       } && test -s conftest$ac_exeext &&
15003
       $as_test_x conftest$ac_exeext; then
15004
15005
lt_aix_libpath_sed='
15006
    /Import File Strings/,/^$/ {
15007
	/^0/ {
15008
	    s/^0  *\(.*\)$/\1/
15009
	    p
15010
	}
15011
    }'
15012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013
# Check for a 64-bit object if we didn't find anything.
15014
if test -z "$aix_libpath"; then
15015
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15016
fi
15017
else
15018
  echo "$as_me: failed program was:" >&5
15019
sed 's/^/| /' conftest.$ac_ext >&5
15020
15021
15022
fi
15023
15024
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15025
      conftest$ac_exeext conftest.$ac_ext
15026
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15027
15028
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15029
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15030
       else
15031
	if test "$host_cpu" = ia64; then
15032
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15033
	  allow_undefined_flag_F77="-z nodefs"
15034
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15035
	else
15036
	 # Determine the default libpath from the value encoded in an empty executable.
15037
	 cat >conftest.$ac_ext <<_ACEOF
15038
      program main
15039
15040
      end
15041
_ACEOF
15042
rm -f conftest.$ac_objext conftest$ac_exeext
15043
if { (ac_try="$ac_link"
15044
case "(($ac_try" in
15045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046
  *) ac_try_echo=$ac_try;;
15047
esac
15048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049
  (eval "$ac_link") 2>conftest.er1
15050
  ac_status=$?
15051
  grep -v '^ *+' conftest.er1 >conftest.err
15052
  rm -f conftest.er1
15053
  cat conftest.err >&5
15054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055
  (exit $ac_status); } && {
15056
	 test -z "$ac_f77_werror_flag" ||
15057
	 test ! -s conftest.err
15058
       } && test -s conftest$ac_exeext &&
15059
       $as_test_x conftest$ac_exeext; then
15060
15061
lt_aix_libpath_sed='
15062
    /Import File Strings/,/^$/ {
15063
	/^0/ {
15064
	    s/^0  *\(.*\)$/\1/
15065
	    p
15066
	}
15067
    }'
15068
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15069
# Check for a 64-bit object if we didn't find anything.
15070
if test -z "$aix_libpath"; then
15071
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15072
fi
15073
else
15074
  echo "$as_me: failed program was:" >&5
15075
sed 's/^/| /' conftest.$ac_ext >&5
15076
15077
15078
fi
15079
15080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15081
      conftest$ac_exeext conftest.$ac_ext
15082
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15083
15084
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15085
	  # Warning - without using the other run time loading flags,
15086
	  # -berok will link without error, but may produce a broken library.
15087
	  no_undefined_flag_F77=' ${wl}-bernotok'
15088
	  allow_undefined_flag_F77=' ${wl}-berok'
15089
	  # Exported symbols can be pulled into shared objects from archives
15090
	  whole_archive_flag_spec_F77='$convenience'
15091
	  archive_cmds_need_lc_F77=yes
15092
	  # This is similar to how AIX traditionally builds its shared libraries.
15093
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15094
	fi
15095
      fi
15096
      ;;
15097
15098
    amigaos*)
15099
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15100
      hardcode_libdir_flag_spec_F77='-L$libdir'
15101
      hardcode_minus_L_F77=yes
15102
      # see comment about different semantics on the GNU ld section
15103
      ld_shlibs_F77=no
15104
      ;;
15105
15106
    bsdi[45]*)
15107
      export_dynamic_flag_spec_F77=-rdynamic
15108
      ;;
15109
15110
    cygwin* | mingw* | pw32*)
15111
      # When not using gcc, we currently assume that we are using
15112
      # Microsoft Visual C++.
15113
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15114
      # no search path for DLLs.
15115
      hardcode_libdir_flag_spec_F77=' '
15116
      allow_undefined_flag_F77=unsupported
15117
      # Tell ltmain to make .lib files, not .a files.
15118
      libext=lib
15119
      # Tell ltmain to make .dll files, not .so files.
15120
      shrext_cmds=".dll"
15121
      # FIXME: Setting linknames here is a bad hack.
15122
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15123
      # The linker will automatically build a .lib file if we build a DLL.
15124
      old_archive_From_new_cmds_F77='true'
15125
      # FIXME: Should let the user specify the lib program.
15126
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15127
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15128
      enable_shared_with_static_runtimes_F77=yes
15129
      ;;
15130
15131
    darwin* | rhapsody*)
15132
      case $host_os in
15133
        rhapsody* | darwin1.[012])
15134
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15135
         ;;
15136
       *) # Darwin 1.3 on
15137
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15138
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15139
         else
15140
           case ${MACOSX_DEPLOYMENT_TARGET} in
15141
             10.[012])
15142
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15143
               ;;
15144
             10.*)
15145
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15146
               ;;
15147
           esac
15148
         fi
15149
         ;;
15150
      esac
15151
      archive_cmds_need_lc_F77=no
15152
      hardcode_direct_F77=no
15153
      hardcode_automatic_F77=yes
15154
      hardcode_shlibpath_var_F77=unsupported
15155
      whole_archive_flag_spec_F77=''
15156
      link_all_deplibs_F77=yes
15157
    if test "$GCC" = yes ; then
15158
    	output_verbose_link_cmd='echo'
15159
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15160
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15161
        archive_expsym_cmds_F77="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}"
15162
        module_expsym_cmds_F77="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}"
15163
    else
15164
      case $cc_basename in
15165
        xlc*)
15166
         output_verbose_link_cmd='echo'
15167
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15168
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15169
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15170
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15171
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15172
          ;;
15173
       *)
15174
         ld_shlibs_F77=no
15175
          ;;
15176
      esac
15177
    fi
15178
      ;;
15179
15180
    dgux*)
15181
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182
      hardcode_libdir_flag_spec_F77='-L$libdir'
15183
      hardcode_shlibpath_var_F77=no
15184
      ;;
15185
15186
    freebsd1*)
15187
      ld_shlibs_F77=no
15188
      ;;
15189
15190
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15191
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15192
    # does not break anything, and helps significantly (at the cost of a little
15193
    # extra space).
15194
    freebsd2.2*)
15195
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15196
      hardcode_libdir_flag_spec_F77='-R$libdir'
15197
      hardcode_direct_F77=yes
15198
      hardcode_shlibpath_var_F77=no
15199
      ;;
15200
15201
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15202
    freebsd2*)
15203
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15204
      hardcode_direct_F77=yes
15205
      hardcode_minus_L_F77=yes
15206
      hardcode_shlibpath_var_F77=no
15207
      ;;
15208
15209
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15210
    freebsd* | dragonfly*)
15211
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15212
      hardcode_libdir_flag_spec_F77='-R$libdir'
15213
      hardcode_direct_F77=yes
15214
      hardcode_shlibpath_var_F77=no
15215
      ;;
15216
15217
    hpux9*)
15218
      if test "$GCC" = yes; then
15219
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15220
      else
15221
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15222
      fi
15223
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224
      hardcode_libdir_separator_F77=:
15225
      hardcode_direct_F77=yes
15226
15227
      # hardcode_minus_L: Not really in the search PATH,
15228
      # but as the default location of the library.
15229
      hardcode_minus_L_F77=yes
15230
      export_dynamic_flag_spec_F77='${wl}-E'
15231
      ;;
15232
15233
    hpux10*)
15234
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15235
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15236
      else
15237
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15238
      fi
15239
      if test "$with_gnu_ld" = no; then
15240
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15241
	hardcode_libdir_separator_F77=:
15242
15243
	hardcode_direct_F77=yes
15244
	export_dynamic_flag_spec_F77='${wl}-E'
15245
15246
	# hardcode_minus_L: Not really in the search PATH,
15247
	# but as the default location of the library.
15248
	hardcode_minus_L_F77=yes
15249
      fi
15250
      ;;
15251
15252
    hpux11*)
15253
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15254
	case $host_cpu in
15255
	hppa*64*)
15256
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257
	  ;;
15258
	ia64*)
15259
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15260
	  ;;
15261
	*)
15262
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15263
	  ;;
15264
	esac
15265
      else
15266
	case $host_cpu in
15267
	hppa*64*)
15268
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269
	  ;;
15270
	ia64*)
15271
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15272
	  ;;
15273
	*)
15274
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15275
	  ;;
15276
	esac
15277
      fi
15278
      if test "$with_gnu_ld" = no; then
15279
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280
	hardcode_libdir_separator_F77=:
15281
15282
	case $host_cpu in
15283
	hppa*64*|ia64*)
15284
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15285
	  hardcode_direct_F77=no
15286
	  hardcode_shlibpath_var_F77=no
15287
	  ;;
15288
	*)
15289
	  hardcode_direct_F77=yes
15290
	  export_dynamic_flag_spec_F77='${wl}-E'
15291
15292
	  # hardcode_minus_L: Not really in the search PATH,
15293
	  # but as the default location of the library.
15294
	  hardcode_minus_L_F77=yes
15295
	  ;;
15296
	esac
15297
      fi
15298
      ;;
15299
15300
    irix5* | irix6* | nonstopux*)
15301
      if test "$GCC" = yes; then
15302
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15303
      else
15304
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15305
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15306
      fi
15307
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308
      hardcode_libdir_separator_F77=:
15309
      link_all_deplibs_F77=yes
15310
      ;;
15311
15312
    netbsd* | netbsdelf*-gnu)
15313
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15315
      else
15316
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15317
      fi
15318
      hardcode_libdir_flag_spec_F77='-R$libdir'
15319
      hardcode_direct_F77=yes
15320
      hardcode_shlibpath_var_F77=no
15321
      ;;
15322
15323
    newsos6)
15324
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15325
      hardcode_direct_F77=yes
15326
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15327
      hardcode_libdir_separator_F77=:
15328
      hardcode_shlibpath_var_F77=no
15329
      ;;
15330
15331
    openbsd*)
15332
      if test -f /usr/libexec/ld.so; then
15333
	hardcode_direct_F77=yes
15334
	hardcode_shlibpath_var_F77=no
15335
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15336
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15337
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15338
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15339
	  export_dynamic_flag_spec_F77='${wl}-E'
15340
	else
15341
	  case $host_os in
15342
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15343
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344
	     hardcode_libdir_flag_spec_F77='-R$libdir'
15345
	     ;;
15346
	   *)
15347
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15348
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15349
	     ;;
15350
	  esac
15351
        fi
15352
      else
15353
	ld_shlibs_F77=no
15354
      fi
15355
      ;;
15356
15357
    os2*)
15358
      hardcode_libdir_flag_spec_F77='-L$libdir'
15359
      hardcode_minus_L_F77=yes
15360
      allow_undefined_flag_F77=unsupported
15361
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15362
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15363
      ;;
15364
15365
    osf3*)
15366
      if test "$GCC" = yes; then
15367
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15368
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15369
      else
15370
	allow_undefined_flag_F77=' -expect_unresolved \*'
15371
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15372
      fi
15373
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15374
      hardcode_libdir_separator_F77=:
15375
      ;;
15376
15377
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15378
      if test "$GCC" = yes; then
15379
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15380
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15381
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15382
      else
15383
	allow_undefined_flag_F77=' -expect_unresolved \*'
15384
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15385
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15386
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15387
15388
	# Both c and cxx compiler support -rpath directly
15389
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15390
      fi
15391
      hardcode_libdir_separator_F77=:
15392
      ;;
15393
15394
    solaris*)
15395
      no_undefined_flag_F77=' -z text'
15396
      if test "$GCC" = yes; then
15397
	wlarc='${wl}'
15398
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15400
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15401
      else
15402
	wlarc=''
15403
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15405
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15406
      fi
15407
      hardcode_libdir_flag_spec_F77='-R$libdir'
15408
      hardcode_shlibpath_var_F77=no
15409
      case $host_os in
15410
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15411
      *)
15412
	# The compiler driver will combine and reorder linker options,
15413
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15414
	# but is careful enough not to reorder.
15415
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15416
	if test "$GCC" = yes; then
15417
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15418
	else
15419
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15420
	fi
15421
	;;
15422
      esac
15423
      link_all_deplibs_F77=yes
15424
      ;;
15425
15426
    sunos4*)
15427
      if test "x$host_vendor" = xsequent; then
15428
	# Use $CC to link under sequent, because it throws in some extra .o
15429
	# files that make .init and .fini sections work.
15430
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15431
      else
15432
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15433
      fi
15434
      hardcode_libdir_flag_spec_F77='-L$libdir'
15435
      hardcode_direct_F77=yes
15436
      hardcode_minus_L_F77=yes
15437
      hardcode_shlibpath_var_F77=no
15438
      ;;
15439
15440
    sysv4)
15441
      case $host_vendor in
15442
	sni)
15443
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444
	  hardcode_direct_F77=yes # is this really true???
15445
	;;
15446
	siemens)
15447
	  ## LD is ld it makes a PLAMLIB
15448
	  ## CC just makes a GrossModule.
15449
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15450
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15451
	  hardcode_direct_F77=no
15452
        ;;
15453
	motorola)
15454
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15456
	;;
15457
      esac
15458
      runpath_var='LD_RUN_PATH'
15459
      hardcode_shlibpath_var_F77=no
15460
      ;;
15461
15462
    sysv4.3*)
15463
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464
      hardcode_shlibpath_var_F77=no
15465
      export_dynamic_flag_spec_F77='-Bexport'
15466
      ;;
15467
15468
    sysv4*MP*)
15469
      if test -d /usr/nec; then
15470
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471
	hardcode_shlibpath_var_F77=no
15472
	runpath_var=LD_RUN_PATH
15473
	hardcode_runpath_var=yes
15474
	ld_shlibs_F77=yes
15475
      fi
15476
      ;;
15477
15478
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15479
      no_undefined_flag_F77='${wl}-z,text'
15480
      archive_cmds_need_lc_F77=no
15481
      hardcode_shlibpath_var_F77=no
15482
      runpath_var='LD_RUN_PATH'
15483
15484
      if test "$GCC" = yes; then
15485
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15486
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15487
      else
15488
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15489
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15490
      fi
15491
      ;;
15492
15493
    sysv5* | sco3.2v5* | sco5v6*)
15494
      # Note: We can NOT use -z defs as we might desire, because we do not
15495
      # link with -lc, and that would cause any symbols used from libc to
15496
      # always be unresolved, which means just about no library would
15497
      # ever link correctly.  If we're not using GNU ld we use -z text
15498
      # though, which does catch some bad symbols but isn't as heavy-handed
15499
      # as -z defs.
15500
      no_undefined_flag_F77='${wl}-z,text'
15501
      allow_undefined_flag_F77='${wl}-z,nodefs'
15502
      archive_cmds_need_lc_F77=no
15503
      hardcode_shlibpath_var_F77=no
15504
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15505
      hardcode_libdir_separator_F77=':'
15506
      link_all_deplibs_F77=yes
15507
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15508
      runpath_var='LD_RUN_PATH'
15509
15510
      if test "$GCC" = yes; then
15511
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513
      else
15514
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516
      fi
15517
      ;;
15518
15519
    uts4*)
15520
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521
      hardcode_libdir_flag_spec_F77='-L$libdir'
15522
      hardcode_shlibpath_var_F77=no
15523
      ;;
15524
15525
    *)
15526
      ld_shlibs_F77=no
15527
      ;;
15528
    esac
15529
  fi
15530
15531
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15532
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15533
test "$ld_shlibs_F77" = no && can_build_shared=no
15534
15535
#
15536
# Do we need to explicitly link libc?
15537
#
15538
case "x$archive_cmds_need_lc_F77" in
15539
x|xyes)
15540
  # Assume -lc should be added
15541
  archive_cmds_need_lc_F77=yes
15542
15543
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15544
    case $archive_cmds_F77 in
15545
    *'~'*)
15546
      # FIXME: we may have to deal with multi-command sequences.
15547
      ;;
15548
    '$CC '*)
15549
      # Test whether the compiler implicitly links with -lc since on some
15550
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15551
      # to ld, don't add -lc before -lgcc.
15552
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15553
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15554
      $rm conftest*
15555
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15556
15557
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558
  (eval $ac_compile) 2>&5
15559
  ac_status=$?
15560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561
  (exit $ac_status); } 2>conftest.err; then
15562
        soname=conftest
15563
        lib=conftest
15564
        libobjs=conftest.$ac_objext
15565
        deplibs=
15566
        wl=$lt_prog_compiler_wl_F77
15567
	pic_flag=$lt_prog_compiler_pic_F77
15568
        compiler_flags=-v
15569
        linker_flags=-v
15570
        verstring=
15571
        output_objdir=.
15572
        libname=conftest
15573
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15574
        allow_undefined_flag_F77=
15575
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15576
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15577
  ac_status=$?
15578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579
  (exit $ac_status); }
15580
        then
15581
	  archive_cmds_need_lc_F77=no
15582
        else
15583
	  archive_cmds_need_lc_F77=yes
15584
        fi
15585
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15586
      else
15587
        cat conftest.err 1>&5
15588
      fi
15589
      $rm conftest*
15590
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15591
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15592
      ;;
15593
    esac
15594
  fi
15595
  ;;
15596
esac
15597
15598
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15599
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15600
library_names_spec=
15601
libname_spec='lib$name'
15602
soname_spec=
15603
shrext_cmds=".so"
15604
postinstall_cmds=
15605
postuninstall_cmds=
15606
finish_cmds=
15607
finish_eval=
15608
shlibpath_var=
15609
shlibpath_overrides_runpath=unknown
15610
version_type=none
15611
dynamic_linker="$host_os ld.so"
15612
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15613
15614
need_lib_prefix=unknown
15615
hardcode_into_libs=no
15616
15617
# when you set need_version to no, make sure it does not cause -set_version
15618
# flags to be left without arguments
15619
need_version=unknown
15620
15621
case $host_os in
15622
aix3*)
15623
  version_type=linux
15624
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15625
  shlibpath_var=LIBPATH
15626
15627
  # AIX 3 has no versioning support, so we append a major version to the name.
15628
  soname_spec='${libname}${release}${shared_ext}$major'
15629
  ;;
15630
15631
aix[4-9]*)
15632
  version_type=linux
15633
  need_lib_prefix=no
15634
  need_version=no
15635
  hardcode_into_libs=yes
15636
  if test "$host_cpu" = ia64; then
15637
    # AIX 5 supports IA64
15638
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15639
    shlibpath_var=LD_LIBRARY_PATH
15640
  else
15641
    # With GCC up to 2.95.x, collect2 would create an import file
15642
    # for dependence libraries.  The import file would start with
15643
    # the line `#! .'.  This would cause the generated library to
15644
    # depend on `.', always an invalid library.  This was fixed in
15645
    # development snapshots of GCC prior to 3.0.
15646
    case $host_os in
15647
      aix4 | aix4.[01] | aix4.[01].*)
15648
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15649
	   echo ' yes '
15650
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15651
	:
15652
      else
15653
	can_build_shared=no
15654
      fi
15655
      ;;
15656
    esac
15657
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15658
    # soname into executable. Probably we can add versioning support to
15659
    # collect2, so additional links can be useful in future.
15660
    if test "$aix_use_runtimelinking" = yes; then
15661
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15662
      # instead of lib<name>.a to let people know that these are not
15663
      # typical AIX shared libraries.
15664
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665
    else
15666
      # We preserve .a as extension for shared libraries through AIX4.2
15667
      # and later when we are not doing run time linking.
15668
      library_names_spec='${libname}${release}.a $libname.a'
15669
      soname_spec='${libname}${release}${shared_ext}$major'
15670
    fi
15671
    shlibpath_var=LIBPATH
15672
  fi
15673
  ;;
15674
15675
amigaos*)
15676
  library_names_spec='$libname.ixlibrary $libname.a'
15677
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15678
  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'
15679
  ;;
15680
15681
beos*)
15682
  library_names_spec='${libname}${shared_ext}'
15683
  dynamic_linker="$host_os ld.so"
15684
  shlibpath_var=LIBRARY_PATH
15685
  ;;
15686
15687
bsdi[45]*)
15688
  version_type=linux
15689
  need_version=no
15690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691
  soname_spec='${libname}${release}${shared_ext}$major'
15692
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15693
  shlibpath_var=LD_LIBRARY_PATH
15694
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15695
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15696
  # the default ld.so.conf also contains /usr/contrib/lib and
15697
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15698
  # libtool to hard-code these into programs
15699
  ;;
15700
15701
cygwin* | mingw* | pw32*)
15702
  version_type=windows
15703
  shrext_cmds=".dll"
15704
  need_version=no
15705
  need_lib_prefix=no
15706
15707
  case $GCC,$host_os in
15708
  yes,cygwin* | yes,mingw* | yes,pw32*)
15709
    library_names_spec='$libname.dll.a'
15710
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15711
    postinstall_cmds='base_file=`basename \${file}`~
15712
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15713
      dldir=$destdir/`dirname \$dlpath`~
15714
      test -d \$dldir || mkdir -p \$dldir~
15715
      $install_prog $dir/$dlname \$dldir/$dlname~
15716
      chmod a+x \$dldir/$dlname'
15717
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15718
      dlpath=$dir/\$dldll~
15719
       $rm \$dlpath'
15720
    shlibpath_overrides_runpath=yes
15721
15722
    case $host_os in
15723
    cygwin*)
15724
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15725
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15726
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15727
      ;;
15728
    mingw*)
15729
      # MinGW DLLs use traditional 'lib' prefix
15730
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15732
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15733
        # It is most probably a Windows format PATH printed by
15734
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15735
        # path with ; separators, and with drive letters. We can handle the
15736
        # drive letters (cygwin fileutils understands them), so leave them,
15737
        # especially as we might pass files found there to a mingw objdump,
15738
        # which wouldn't understand a cygwinified path. Ahh.
15739
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15740
      else
15741
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15742
      fi
15743
      ;;
15744
    pw32*)
15745
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15746
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15747
      ;;
15748
    esac
15749
    ;;
15750
15751
  *)
15752
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15753
    ;;
15754
  esac
15755
  dynamic_linker='Win32 ld.exe'
15756
  # FIXME: first we should search . and the directory the executable is in
15757
  shlibpath_var=PATH
15758
  ;;
15759
15760
darwin* | rhapsody*)
15761
  dynamic_linker="$host_os dyld"
15762
  version_type=darwin
15763
  need_lib_prefix=no
15764
  need_version=no
15765
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15766
  soname_spec='${libname}${release}${major}$shared_ext'
15767
  shlibpath_overrides_runpath=yes
15768
  shlibpath_var=DYLD_LIBRARY_PATH
15769
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15770
15771
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15772
  ;;
15773
15774
dgux*)
15775
  version_type=linux
15776
  need_lib_prefix=no
15777
  need_version=no
15778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15779
  soname_spec='${libname}${release}${shared_ext}$major'
15780
  shlibpath_var=LD_LIBRARY_PATH
15781
  ;;
15782
15783
freebsd1*)
15784
  dynamic_linker=no
15785
  ;;
15786
15787
freebsd* | dragonfly*)
15788
  # DragonFly does not have aout.  When/if they implement a new
15789
  # versioning mechanism, adjust this.
15790
  if test -x /usr/bin/objformat; then
15791
    objformat=`/usr/bin/objformat`
15792
  else
15793
    case $host_os in
15794
    freebsd[123]*) objformat=aout ;;
15795
    *) objformat=elf ;;
15796
    esac
15797
  fi
15798
  version_type=freebsd-$objformat
15799
  case $version_type in
15800
    freebsd-elf*)
15801
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15802
      need_version=no
15803
      need_lib_prefix=no
15804
      ;;
15805
    freebsd-*)
15806
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15807
      need_version=yes
15808
      ;;
15809
  esac
15810
  shlibpath_var=LD_LIBRARY_PATH
15811
  case $host_os in
15812
  freebsd2*)
15813
    shlibpath_overrides_runpath=yes
15814
    ;;
15815
  freebsd3.[01]* | freebsdelf3.[01]*)
15816
    shlibpath_overrides_runpath=yes
15817
    hardcode_into_libs=yes
15818
    ;;
15819
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15820
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15821
    shlibpath_overrides_runpath=no
15822
    hardcode_into_libs=yes
15823
    ;;
15824
  *) # from 4.6 on, and DragonFly
15825
    shlibpath_overrides_runpath=yes
15826
    hardcode_into_libs=yes
15827
    ;;
15828
  esac
15829
  ;;
15830
15831
gnu*)
15832
  version_type=linux
15833
  need_lib_prefix=no
15834
  need_version=no
15835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15836
  soname_spec='${libname}${release}${shared_ext}$major'
15837
  shlibpath_var=LD_LIBRARY_PATH
15838
  hardcode_into_libs=yes
15839
  ;;
15840
15841
hpux9* | hpux10* | hpux11*)
15842
  # Give a soname corresponding to the major version so that dld.sl refuses to
15843
  # link against other versions.
15844
  version_type=sunos
15845
  need_lib_prefix=no
15846
  need_version=no
15847
  case $host_cpu in
15848
  ia64*)
15849
    shrext_cmds='.so'
15850
    hardcode_into_libs=yes
15851
    dynamic_linker="$host_os dld.so"
15852
    shlibpath_var=LD_LIBRARY_PATH
15853
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15854
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855
    soname_spec='${libname}${release}${shared_ext}$major'
15856
    if test "X$HPUX_IA64_MODE" = X32; then
15857
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15858
    else
15859
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15860
    fi
15861
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15862
    ;;
15863
   hppa*64*)
15864
     shrext_cmds='.sl'
15865
     hardcode_into_libs=yes
15866
     dynamic_linker="$host_os dld.sl"
15867
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15868
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15869
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870
     soname_spec='${libname}${release}${shared_ext}$major'
15871
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15872
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15873
     ;;
15874
   *)
15875
    shrext_cmds='.sl'
15876
    dynamic_linker="$host_os dld.sl"
15877
    shlibpath_var=SHLIB_PATH
15878
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15879
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880
    soname_spec='${libname}${release}${shared_ext}$major'
15881
    ;;
15882
  esac
15883
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15884
  postinstall_cmds='chmod 555 $lib'
15885
  ;;
15886
15887
interix[3-9]*)
15888
  version_type=linux
15889
  need_lib_prefix=no
15890
  need_version=no
15891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15892
  soname_spec='${libname}${release}${shared_ext}$major'
15893
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15894
  shlibpath_var=LD_LIBRARY_PATH
15895
  shlibpath_overrides_runpath=no
15896
  hardcode_into_libs=yes
15897
  ;;
15898
15899
irix5* | irix6* | nonstopux*)
15900
  case $host_os in
15901
    nonstopux*) version_type=nonstopux ;;
15902
    *)
15903
	if test "$lt_cv_prog_gnu_ld" = yes; then
15904
		version_type=linux
15905
	else
15906
		version_type=irix
15907
	fi ;;
15908
  esac
15909
  need_lib_prefix=no
15910
  need_version=no
15911
  soname_spec='${libname}${release}${shared_ext}$major'
15912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15913
  case $host_os in
15914
  irix5* | nonstopux*)
15915
    libsuff= shlibsuff=
15916
    ;;
15917
  *)
15918
    case $LD in # libtool.m4 will add one of these switches to LD
15919
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15920
      libsuff= shlibsuff= libmagic=32-bit;;
15921
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15922
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15923
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15924
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15925
    *) libsuff= shlibsuff= libmagic=never-match;;
15926
    esac
15927
    ;;
15928
  esac
15929
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15930
  shlibpath_overrides_runpath=no
15931
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15932
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15933
  hardcode_into_libs=yes
15934
  ;;
15935
15936
# No shared lib support for Linux oldld, aout, or coff.
15937
linux*oldld* | linux*aout* | linux*coff*)
15938
  dynamic_linker=no
15939
  ;;
15940
15941
# This must be Linux ELF.
15942
linux* | k*bsd*-gnu)
15943
  version_type=linux
15944
  need_lib_prefix=no
15945
  need_version=no
15946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947
  soname_spec='${libname}${release}${shared_ext}$major'
15948
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15949
  shlibpath_var=LD_LIBRARY_PATH
15950
  shlibpath_overrides_runpath=no
15951
  # This implies no fast_install, which is unacceptable.
15952
  # Some rework will be needed to allow for fast_install
15953
  # before this can be enabled.
15954
  hardcode_into_libs=yes
15955
15956
  # Append ld.so.conf contents to the search path
15957
  if test -f /etc/ld.so.conf; then
15958
    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' ' '`
15959
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15960
  fi
15961
15962
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15963
  # powerpc, because MkLinux only supported shared libraries with the
15964
  # GNU dynamic linker.  Since this was broken with cross compilers,
15965
  # most powerpc-linux boxes support dynamic linking these days and
15966
  # people can always --disable-shared, the test was removed, and we
15967
  # assume the GNU/Linux dynamic linker is in use.
15968
  dynamic_linker='GNU/Linux ld.so'
15969
  ;;
15970
15971
netbsdelf*-gnu)
15972
  version_type=linux
15973
  need_lib_prefix=no
15974
  need_version=no
15975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15976
  soname_spec='${libname}${release}${shared_ext}$major'
15977
  shlibpath_var=LD_LIBRARY_PATH
15978
  shlibpath_overrides_runpath=no
15979
  hardcode_into_libs=yes
15980
  dynamic_linker='NetBSD ld.elf_so'
15981
  ;;
15982
15983
netbsd*)
15984
  version_type=sunos
15985
  need_lib_prefix=no
15986
  need_version=no
15987
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15988
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15990
    dynamic_linker='NetBSD (a.out) ld.so'
15991
  else
15992
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993
    soname_spec='${libname}${release}${shared_ext}$major'
15994
    dynamic_linker='NetBSD ld.elf_so'
15995
  fi
15996
  shlibpath_var=LD_LIBRARY_PATH
15997
  shlibpath_overrides_runpath=yes
15998
  hardcode_into_libs=yes
15999
  ;;
16000
16001
newsos6)
16002
  version_type=linux
16003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004
  shlibpath_var=LD_LIBRARY_PATH
16005
  shlibpath_overrides_runpath=yes
16006
  ;;
16007
16008
nto-qnx*)
16009
  version_type=linux
16010
  need_lib_prefix=no
16011
  need_version=no
16012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013
  soname_spec='${libname}${release}${shared_ext}$major'
16014
  shlibpath_var=LD_LIBRARY_PATH
16015
  shlibpath_overrides_runpath=yes
16016
  ;;
16017
16018
openbsd*)
16019
  version_type=sunos
16020
  sys_lib_dlsearch_path_spec="/usr/lib"
16021
  need_lib_prefix=no
16022
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16023
  case $host_os in
16024
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16025
    *)                         need_version=no  ;;
16026
  esac
16027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16028
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16029
  shlibpath_var=LD_LIBRARY_PATH
16030
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16031
    case $host_os in
16032
      openbsd2.[89] | openbsd2.[89].*)
16033
	shlibpath_overrides_runpath=no
16034
	;;
16035
      *)
16036
	shlibpath_overrides_runpath=yes
16037
	;;
16038
      esac
16039
  else
16040
    shlibpath_overrides_runpath=yes
16041
  fi
16042
  ;;
16043
16044
os2*)
16045
  libname_spec='$name'
16046
  shrext_cmds=".dll"
16047
  need_lib_prefix=no
16048
  library_names_spec='$libname${shared_ext} $libname.a'
16049
  dynamic_linker='OS/2 ld.exe'
16050
  shlibpath_var=LIBPATH
16051
  ;;
16052
16053
osf3* | osf4* | osf5*)
16054
  version_type=osf
16055
  need_lib_prefix=no
16056
  need_version=no
16057
  soname_spec='${libname}${release}${shared_ext}$major'
16058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059
  shlibpath_var=LD_LIBRARY_PATH
16060
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16061
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16062
  ;;
16063
16064
rdos*)
16065
  dynamic_linker=no
16066
  ;;
16067
16068
solaris*)
16069
  version_type=linux
16070
  need_lib_prefix=no
16071
  need_version=no
16072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073
  soname_spec='${libname}${release}${shared_ext}$major'
16074
  shlibpath_var=LD_LIBRARY_PATH
16075
  shlibpath_overrides_runpath=yes
16076
  hardcode_into_libs=yes
16077
  # ldd complains unless libraries are executable
16078
  postinstall_cmds='chmod +x $lib'
16079
  ;;
16080
16081
sunos4*)
16082
  version_type=sunos
16083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16084
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16085
  shlibpath_var=LD_LIBRARY_PATH
16086
  shlibpath_overrides_runpath=yes
16087
  if test "$with_gnu_ld" = yes; then
16088
    need_lib_prefix=no
16089
  fi
16090
  need_version=yes
16091
  ;;
16092
16093
sysv4 | sysv4.3*)
16094
  version_type=linux
16095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096
  soname_spec='${libname}${release}${shared_ext}$major'
16097
  shlibpath_var=LD_LIBRARY_PATH
16098
  case $host_vendor in
16099
    sni)
16100
      shlibpath_overrides_runpath=no
16101
      need_lib_prefix=no
16102
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16103
      runpath_var=LD_RUN_PATH
16104
      ;;
16105
    siemens)
16106
      need_lib_prefix=no
16107
      ;;
16108
    motorola)
16109
      need_lib_prefix=no
16110
      need_version=no
16111
      shlibpath_overrides_runpath=no
16112
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16113
      ;;
16114
  esac
16115
  ;;
16116
16117
sysv4*MP*)
16118
  if test -d /usr/nec ;then
16119
    version_type=linux
16120
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16121
    soname_spec='$libname${shared_ext}.$major'
16122
    shlibpath_var=LD_LIBRARY_PATH
16123
  fi
16124
  ;;
16125
16126
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16127
  version_type=freebsd-elf
16128
  need_lib_prefix=no
16129
  need_version=no
16130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16131
  soname_spec='${libname}${release}${shared_ext}$major'
16132
  shlibpath_var=LD_LIBRARY_PATH
16133
  hardcode_into_libs=yes
16134
  if test "$with_gnu_ld" = yes; then
16135
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16136
    shlibpath_overrides_runpath=no
16137
  else
16138
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16139
    shlibpath_overrides_runpath=yes
16140
    case $host_os in
16141
      sco3.2v5*)
16142
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16143
	;;
16144
    esac
16145
  fi
16146
  sys_lib_dlsearch_path_spec='/usr/lib'
16147
  ;;
16148
16149
uts4*)
16150
  version_type=linux
16151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152
  soname_spec='${libname}${release}${shared_ext}$major'
16153
  shlibpath_var=LD_LIBRARY_PATH
16154
  ;;
16155
16156
*)
16157
  dynamic_linker=no
16158
  ;;
16159
esac
16160
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16161
echo "${ECHO_T}$dynamic_linker" >&6; }
16162
test "$dynamic_linker" = no && can_build_shared=no
16163
16164
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16165
  echo $ECHO_N "(cached) $ECHO_C" >&6
16166
else
16167
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16168
fi
16169
16170
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16171
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16172
  echo $ECHO_N "(cached) $ECHO_C" >&6
16173
else
16174
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16175
fi
16176
16177
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16178
16179
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16180
if test "$GCC" = yes; then
16181
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16182
fi
16183
16184
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16185
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16186
hardcode_action_F77=
16187
if test -n "$hardcode_libdir_flag_spec_F77" || \
16188
   test -n "$runpath_var_F77" || \
16189
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16190
16191
  # We can hardcode non-existant directories.
16192
  if test "$hardcode_direct_F77" != no &&
16193
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16194
     # have to relink, otherwise we might link with an installed library
16195
     # when we should be linking with a yet-to-be-installed one
16196
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16197
     test "$hardcode_minus_L_F77" != no; then
16198
    # Linking always hardcodes the temporary library directory.
16199
    hardcode_action_F77=relink
16200
  else
16201
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16202
    hardcode_action_F77=immediate
16203
  fi
16204
else
16205
  # We cannot hardcode anything, or else we can only hardcode existing
16206
  # directories.
16207
  hardcode_action_F77=unsupported
16208
fi
16209
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16210
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16211
16212
if test "$hardcode_action_F77" = relink; then
16213
  # Fast installation is not supported
16214
  enable_fast_install=no
16215
elif test "$shlibpath_overrides_runpath" = yes ||
16216
     test "$enable_shared" = no; then
16217
  # Fast installation is not necessary
16218
  enable_fast_install=needless
16219
fi
16220
16221
16222
# The else clause should only fire when bootstrapping the
16223
# libtool distribution, otherwise you forgot to ship ltmain.sh
16224
# with your package, and you will get complaints that there are
16225
# no rules to generate ltmain.sh.
16226
if test -f "$ltmain"; then
16227
  # See if we are running on zsh, and set the options which allow our commands through
16228
  # without removal of \ escapes.
16229
  if test -n "${ZSH_VERSION+set}" ; then
16230
    setopt NO_GLOB_SUBST
16231
  fi
16232
  # Now quote all the things that may contain metacharacters while being
16233
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16234
  # variables and quote the copies for generation of the libtool script.
16235
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16236
    SED SHELL STRIP \
16237
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16238
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16239
    deplibs_check_method reload_flag reload_cmds need_locks \
16240
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16241
    lt_cv_sys_global_symbol_to_c_name_address \
16242
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16243
    old_postinstall_cmds old_postuninstall_cmds \
16244
    compiler_F77 \
16245
    CC_F77 \
16246
    LD_F77 \
16247
    lt_prog_compiler_wl_F77 \
16248
    lt_prog_compiler_pic_F77 \
16249
    lt_prog_compiler_static_F77 \
16250
    lt_prog_compiler_no_builtin_flag_F77 \
16251
    export_dynamic_flag_spec_F77 \
16252
    thread_safe_flag_spec_F77 \
16253
    whole_archive_flag_spec_F77 \
16254
    enable_shared_with_static_runtimes_F77 \
16255
    old_archive_cmds_F77 \
16256
    old_archive_from_new_cmds_F77 \
16257
    predep_objects_F77 \
16258
    postdep_objects_F77 \
16259
    predeps_F77 \
16260
    postdeps_F77 \
16261
    compiler_lib_search_path_F77 \
16262
    compiler_lib_search_dirs_F77 \
16263
    archive_cmds_F77 \
16264
    archive_expsym_cmds_F77 \
16265
    postinstall_cmds_F77 \
16266
    postuninstall_cmds_F77 \
16267
    old_archive_from_expsyms_cmds_F77 \
16268
    allow_undefined_flag_F77 \
16269
    no_undefined_flag_F77 \
16270
    export_symbols_cmds_F77 \
16271
    hardcode_libdir_flag_spec_F77 \
16272
    hardcode_libdir_flag_spec_ld_F77 \
16273
    hardcode_libdir_separator_F77 \
16274
    hardcode_automatic_F77 \
16275
    module_cmds_F77 \
16276
    module_expsym_cmds_F77 \
16277
    lt_cv_prog_compiler_c_o_F77 \
16278
    fix_srcfile_path_F77 \
16279
    exclude_expsyms_F77 \
16280
    include_expsyms_F77; do
16281
16282
    case $var in
16283
    old_archive_cmds_F77 | \
16284
    old_archive_from_new_cmds_F77 | \
16285
    archive_cmds_F77 | \
16286
    archive_expsym_cmds_F77 | \
16287
    module_cmds_F77 | \
16288
    module_expsym_cmds_F77 | \
16289
    old_archive_from_expsyms_cmds_F77 | \
16290
    export_symbols_cmds_F77 | \
16291
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16292
    postinstall_cmds | postuninstall_cmds | \
16293
    old_postinstall_cmds | old_postuninstall_cmds | \
16294
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16295
      # Double-quote double-evaled strings.
16296
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16297
      ;;
16298
    *)
16299
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16300
      ;;
16301
    esac
16302
  done
16303
16304
  case $lt_echo in
16305
  *'\$0 --fallback-echo"')
16306
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16307
    ;;
16308
  esac
16309
16310
cfgfile="$ofile"
16311
16312
  cat <<__EOF__ >> "$cfgfile"
16313
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16314
16315
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16316
16317
# Shell to use when invoking shell scripts.
16318
SHELL=$lt_SHELL
16319
16320
# Whether or not to build shared libraries.
16321
build_libtool_libs=$enable_shared
16322
16323
# Whether or not to build static libraries.
16324
build_old_libs=$enable_static
16325
16326
# Whether or not to add -lc for building shared libraries.
16327
build_libtool_need_lc=$archive_cmds_need_lc_F77
16328
16329
# Whether or not to disallow shared libs when runtime libs are static
16330
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16331
16332
# Whether or not to optimize for fast installation.
16333
fast_install=$enable_fast_install
16334
16335
# The host system.
16336
host_alias=$host_alias
16337
host=$host
16338
host_os=$host_os
16339
16340
# The build system.
16341
build_alias=$build_alias
16342
build=$build
16343
build_os=$build_os
16344
16345
# An echo program that does not interpret backslashes.
16346
echo=$lt_echo
16347
16348
# The archiver.
16349
AR=$lt_AR
16350
AR_FLAGS=$lt_AR_FLAGS
16351
16352
# A C compiler.
16353
LTCC=$lt_LTCC
16354
16355
# LTCC compiler flags.
16356
LTCFLAGS=$lt_LTCFLAGS
16357
16358
# A language-specific compiler.
16359
CC=$lt_compiler_F77
16360
16361
# Is the compiler the GNU C compiler?
16362
with_gcc=$GCC_F77
16363
16364
# An ERE matcher.
16365
EGREP=$lt_EGREP
16366
16367
# The linker used to build libraries.
16368
LD=$lt_LD_F77
16369
16370
# Whether we need hard or soft links.
16371
LN_S=$lt_LN_S
16372
16373
# A BSD-compatible nm program.
16374
NM=$lt_NM
16375
16376
# A symbol stripping program
16377
STRIP=$lt_STRIP
16378
16379
# Used to examine libraries when file_magic_cmd begins "file"
16380
MAGIC_CMD=$MAGIC_CMD
16381
16382
# Used on cygwin: DLL creation program.
16383
DLLTOOL="$DLLTOOL"
16384
16385
# Used on cygwin: object dumper.
16386
OBJDUMP="$OBJDUMP"
16387
16388
# Used on cygwin: assembler.
16389
AS="$AS"
16390
16391
# The name of the directory that contains temporary libtool files.
16392
objdir=$objdir
16393
16394
# How to create reloadable object files.
16395
reload_flag=$lt_reload_flag
16396
reload_cmds=$lt_reload_cmds
16397
16398
# How to pass a linker flag through the compiler.
16399
wl=$lt_lt_prog_compiler_wl_F77
16400
16401
# Object file suffix (normally "o").
16402
objext="$ac_objext"
16403
16404
# Old archive suffix (normally "a").
16405
libext="$libext"
16406
16407
# Shared library suffix (normally ".so").
16408
shrext_cmds='$shrext_cmds'
16409
16410
# Executable file suffix (normally "").
16411
exeext="$exeext"
16412
16413
# Additional compiler flags for building library objects.
16414
pic_flag=$lt_lt_prog_compiler_pic_F77
16415
pic_mode=$pic_mode
16416
16417
# What is the maximum length of a command?
16418
max_cmd_len=$lt_cv_sys_max_cmd_len
16419
16420
# Does compiler simultaneously support -c and -o options?
16421
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16422
16423
# Must we lock files when doing compilation?
16424
need_locks=$lt_need_locks
16425
16426
# Do we need the lib prefix for modules?
16427
need_lib_prefix=$need_lib_prefix
16428
16429
# Do we need a version for libraries?
16430
need_version=$need_version
16431
16432
# Whether dlopen is supported.
16433
dlopen_support=$enable_dlopen
16434
16435
# Whether dlopen of programs is supported.
16436
dlopen_self=$enable_dlopen_self
16437
16438
# Whether dlopen of statically linked programs is supported.
16439
dlopen_self_static=$enable_dlopen_self_static
16440
16441
# Compiler flag to prevent dynamic linking.
16442
link_static_flag=$lt_lt_prog_compiler_static_F77
16443
16444
# Compiler flag to turn off builtin functions.
16445
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16446
16447
# Compiler flag to allow reflexive dlopens.
16448
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16449
16450
# Compiler flag to generate shared objects directly from archives.
16451
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16452
16453
# Compiler flag to generate thread-safe objects.
16454
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16455
16456
# Library versioning type.
16457
version_type=$version_type
16458
16459
# Format of library name prefix.
16460
libname_spec=$lt_libname_spec
16461
16462
# List of archive names.  First name is the real one, the rest are links.
16463
# The last name is the one that the linker finds with -lNAME.
16464
library_names_spec=$lt_library_names_spec
16465
16466
# The coded name of the library, if different from the real name.
16467
soname_spec=$lt_soname_spec
16468
16469
# Commands used to build and install an old-style archive.
16470
RANLIB=$lt_RANLIB
16471
old_archive_cmds=$lt_old_archive_cmds_F77
16472
old_postinstall_cmds=$lt_old_postinstall_cmds
16473
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16474
16475
# Create an old-style archive from a shared archive.
16476
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16477
16478
# Create a temporary old-style archive to link instead of a shared archive.
16479
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16480
16481
# Commands used to build and install a shared archive.
16482
archive_cmds=$lt_archive_cmds_F77
16483
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16484
postinstall_cmds=$lt_postinstall_cmds
16485
postuninstall_cmds=$lt_postuninstall_cmds
16486
16487
# Commands used to build a loadable module (assumed same as above if empty)
16488
module_cmds=$lt_module_cmds_F77
16489
module_expsym_cmds=$lt_module_expsym_cmds_F77
16490
16491
# Commands to strip libraries.
16492
old_striplib=$lt_old_striplib
16493
striplib=$lt_striplib
16494
16495
# Dependencies to place before the objects being linked to create a
16496
# shared library.
16497
predep_objects=$lt_predep_objects_F77
16498
16499
# Dependencies to place after the objects being linked to create a
16500
# shared library.
16501
postdep_objects=$lt_postdep_objects_F77
16502
16503
# Dependencies to place before the objects being linked to create a
16504
# shared library.
16505
predeps=$lt_predeps_F77
16506
16507
# Dependencies to place after the objects being linked to create a
16508
# shared library.
16509
postdeps=$lt_postdeps_F77
16510
16511
# The directories searched by this compiler when creating a shared
16512
# library
16513
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16514
16515
# The library search path used internally by the compiler when linking
16516
# a shared library.
16517
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16518
16519
# Method to check whether dependent libraries are shared objects.
16520
deplibs_check_method=$lt_deplibs_check_method
16521
16522
# Command to use when deplibs_check_method == file_magic.
16523
file_magic_cmd=$lt_file_magic_cmd
16524
16525
# Flag that allows shared libraries with undefined symbols to be built.
16526
allow_undefined_flag=$lt_allow_undefined_flag_F77
16527
16528
# Flag that forces no undefined symbols.
16529
no_undefined_flag=$lt_no_undefined_flag_F77
16530
16531
# Commands used to finish a libtool library installation in a directory.
16532
finish_cmds=$lt_finish_cmds
16533
16534
# Same as above, but a single script fragment to be evaled but not shown.
16535
finish_eval=$lt_finish_eval
16536
16537
# Take the output of nm and produce a listing of raw symbols and C names.
16538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16539
16540
# Transform the output of nm in a proper C declaration
16541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16542
16543
# Transform the output of nm in a C name address pair
16544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16545
16546
# This is the shared library runtime path variable.
16547
runpath_var=$runpath_var
16548
16549
# This is the shared library path variable.
16550
shlibpath_var=$shlibpath_var
16551
16552
# Is shlibpath searched before the hard-coded library search path?
16553
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16554
16555
# How to hardcode a shared library path into an executable.
16556
hardcode_action=$hardcode_action_F77
16557
16558
# Whether we should hardcode library paths into libraries.
16559
hardcode_into_libs=$hardcode_into_libs
16560
16561
# Flag to hardcode \$libdir into a binary during linking.
16562
# This must work even if \$libdir does not exist.
16563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16564
16565
# If ld is used when linking, flag to hardcode \$libdir into
16566
# a binary during linking. This must work even if \$libdir does
16567
# not exist.
16568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16569
16570
# Whether we need a single -rpath flag with a separated argument.
16571
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16572
16573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16574
# resulting binary.
16575
hardcode_direct=$hardcode_direct_F77
16576
16577
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16578
# resulting binary.
16579
hardcode_minus_L=$hardcode_minus_L_F77
16580
16581
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16582
# the resulting binary.
16583
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16584
16585
# Set to yes if building a shared library automatically hardcodes DIR into the library
16586
# and all subsequent libraries and executables linked against it.
16587
hardcode_automatic=$hardcode_automatic_F77
16588
16589
# Variables whose values should be saved in libtool wrapper scripts and
16590
# restored at relink time.
16591
variables_saved_for_relink="$variables_saved_for_relink"
16592
16593
# Whether libtool must link a program against all its dependency libraries.
16594
link_all_deplibs=$link_all_deplibs_F77
16595
16596
# Compile-time system search path for libraries
16597
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16598
16599
# Run-time system search path for libraries
16600
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16601
16602
# Fix the shell variable \$srcfile for the compiler.
16603
fix_srcfile_path=$lt_fix_srcfile_path
16604
16605
# Set to yes if exported symbols are required.
16606
always_export_symbols=$always_export_symbols_F77
16607
16608
# The commands to list exported symbols.
16609
export_symbols_cmds=$lt_export_symbols_cmds_F77
16610
16611
# The commands to extract the exported symbol list from a shared archive.
16612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16613
16614
# Symbols that should not be listed in the preloaded symbols.
16615
exclude_expsyms=$lt_exclude_expsyms_F77
16616
16617
# Symbols that must always be exported.
16618
include_expsyms=$lt_include_expsyms_F77
16619
16620
# ### END LIBTOOL TAG CONFIG: $tagname
16621
16622
__EOF__
16623
16624
16625
else
16626
  # If there is no Makefile yet, we rely on a make rule to execute
16627
  # `config.status --recheck' to rerun these tests and create the
16628
  # libtool script then.
16629
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16630
  if test -f "$ltmain_in"; then
16631
    test -f Makefile && make "$ltmain"
16632
  fi
16633
fi
16634
16635
16636
ac_ext=c
16637
ac_cpp='$CPP $CPPFLAGS'
16638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16641
16642
CC="$lt_save_CC"
16643
16644
	else
16645
	  tagname=""
16646
	fi
16647
	;;
16648
16649
      GCJ)
16650
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16651
16652
16653
# Source file extension for Java test sources.
16654
ac_ext=java
16655
16656
# Object file extension for compiled Java test sources.
16657
objext=o
16658
objext_GCJ=$objext
16659
16660
# Code to be used in simple compile tests
16661
lt_simple_compile_test_code="class foo {}"
16662
16663
# Code to be used in simple link tests
16664
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16665
16666
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16667
16668
# If no C compiler was specified, use CC.
16669
LTCC=${LTCC-"$CC"}
16670
16671
# If no C compiler flags were specified, use CFLAGS.
16672
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16673
16674
# Allow CC to be a program name with arguments.
16675
compiler=$CC
16676
16677
16678
# save warnings/boilerplate of simple test code
16679
ac_outfile=conftest.$ac_objext
16680
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16681
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16682
_lt_compiler_boilerplate=`cat conftest.err`
16683
$rm conftest*
16684
16685
ac_outfile=conftest.$ac_objext
16686
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16687
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16688
_lt_linker_boilerplate=`cat conftest.err`
16689
$rm -r conftest*
16690
16691
16692
# Allow CC to be a program name with arguments.
16693
lt_save_CC="$CC"
16694
CC=${GCJ-"gcj"}
16695
compiler=$CC
16696
compiler_GCJ=$CC
16697
for cc_temp in $compiler""; do
16698
  case $cc_temp in
16699
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16700
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16701
    \-*) ;;
16702
    *) break;;
16703
  esac
16704
done
16705
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16706
16707
16708
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16709
archive_cmds_need_lc_GCJ=no
16710
16711
old_archive_cmds_GCJ=$old_archive_cmds
16712
16713
16714
lt_prog_compiler_no_builtin_flag_GCJ=
16715
16716
if test "$GCC" = yes; then
16717
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16718
16719
16720
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16721
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16722
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16723
  echo $ECHO_N "(cached) $ECHO_C" >&6
16724
else
16725
  lt_cv_prog_compiler_rtti_exceptions=no
16726
  ac_outfile=conftest.$ac_objext
16727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16728
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16729
   # Insert the option either (1) after the last *FLAGS variable, or
16730
   # (2) before a word containing "conftest.", or (3) at the end.
16731
   # Note that $ac_compile itself does not contain backslashes and begins
16732
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16733
   # The option is referenced via a variable to avoid confusing sed.
16734
   lt_compile=`echo "$ac_compile" | $SED \
16735
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16736
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16737
   -e 's:$: $lt_compiler_flag:'`
16738
   (eval echo "\"\$as_me:16738: $lt_compile\"" >&5)
16739
   (eval "$lt_compile" 2>conftest.err)
16740
   ac_status=$?
16741
   cat conftest.err >&5
16742
   echo "$as_me:16742: \$? = $ac_status" >&5
16743
   if (exit $ac_status) && test -s "$ac_outfile"; then
16744
     # The compiler can only warn and ignore the option if not recognized
16745
     # So say no if there are warnings other than the usual output.
16746
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16747
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16748
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16749
       lt_cv_prog_compiler_rtti_exceptions=yes
16750
     fi
16751
   fi
16752
   $rm conftest*
16753
16754
fi
16755
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16756
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16757
16758
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16759
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16760
else
16761
    :
16762
fi
16763
16764
fi
16765
16766
lt_prog_compiler_wl_GCJ=
16767
lt_prog_compiler_pic_GCJ=
16768
lt_prog_compiler_static_GCJ=
16769
16770
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16771
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16772
16773
  if test "$GCC" = yes; then
16774
    lt_prog_compiler_wl_GCJ='-Wl,'
16775
    lt_prog_compiler_static_GCJ='-static'
16776
16777
    case $host_os in
16778
      aix*)
16779
      # All AIX code is PIC.
16780
      if test "$host_cpu" = ia64; then
16781
	# AIX 5 now supports IA64 processor
16782
	lt_prog_compiler_static_GCJ='-Bstatic'
16783
      fi
16784
      ;;
16785
16786
    amigaos*)
16787
      # FIXME: we need at least 68020 code to build shared libraries, but
16788
      # adding the `-m68020' flag to GCC prevents building anything better,
16789
      # like `-m68040'.
16790
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16791
      ;;
16792
16793
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16794
      # PIC is the default for these OSes.
16795
      ;;
16796
16797
    mingw* | cygwin* | pw32* | os2*)
16798
      # This hack is so that the source file can tell whether it is being
16799
      # built for inclusion in a dll (and should export symbols for example).
16800
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16801
      # (--disable-auto-import) libraries
16802
16803
      ;;
16804
16805
    darwin* | rhapsody*)
16806
      # PIC is the default on this platform
16807
      # Common symbols not allowed in MH_DYLIB files
16808
      lt_prog_compiler_pic_GCJ='-fno-common'
16809
      ;;
16810
16811
    interix[3-9]*)
16812
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16813
      # Instead, we relocate shared libraries at runtime.
16814
      ;;
16815
16816
    msdosdjgpp*)
16817
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16818
      # on systems that don't support them.
16819
      lt_prog_compiler_can_build_shared_GCJ=no
16820
      enable_shared=no
16821
      ;;
16822
16823
    sysv4*MP*)
16824
      if test -d /usr/nec; then
16825
	lt_prog_compiler_pic_GCJ=-Kconform_pic
16826
      fi
16827
      ;;
16828
16829
    hpux*)
16830
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16831
      # not for PA HP-UX.
16832
      case $host_cpu in
16833
      hppa*64*|ia64*)
16834
	# +Z the default
16835
	;;
16836
      *)
16837
	lt_prog_compiler_pic_GCJ='-fPIC'
16838
	;;
16839
      esac
16840
      ;;
16841
16842
    *)
16843
      lt_prog_compiler_pic_GCJ='-fPIC'
16844
      ;;
16845
    esac
16846
  else
16847
    # PORTME Check for flag to pass linker flags through the system compiler.
16848
    case $host_os in
16849
    aix*)
16850
      lt_prog_compiler_wl_GCJ='-Wl,'
16851
      if test "$host_cpu" = ia64; then
16852
	# AIX 5 now supports IA64 processor
16853
	lt_prog_compiler_static_GCJ='-Bstatic'
16854
      else
16855
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16856
      fi
16857
      ;;
16858
      darwin*)
16859
        # PIC is the default on this platform
16860
        # Common symbols not allowed in MH_DYLIB files
16861
       case $cc_basename in
16862
         xlc*)
16863
         lt_prog_compiler_pic_GCJ='-qnocommon'
16864
         lt_prog_compiler_wl_GCJ='-Wl,'
16865
         ;;
16866
       esac
16867
       ;;
16868
16869
    mingw* | cygwin* | pw32* | os2*)
16870
      # This hack is so that the source file can tell whether it is being
16871
      # built for inclusion in a dll (and should export symbols for example).
16872
16873
      ;;
16874
16875
    hpux9* | hpux10* | hpux11*)
16876
      lt_prog_compiler_wl_GCJ='-Wl,'
16877
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16878
      # not for PA HP-UX.
16879
      case $host_cpu in
16880
      hppa*64*|ia64*)
16881
	# +Z the default
16882
	;;
16883
      *)
16884
	lt_prog_compiler_pic_GCJ='+Z'
16885
	;;
16886
      esac
16887
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16888
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16889
      ;;
16890
16891
    irix5* | irix6* | nonstopux*)
16892
      lt_prog_compiler_wl_GCJ='-Wl,'
16893
      # PIC (with -KPIC) is the default.
16894
      lt_prog_compiler_static_GCJ='-non_shared'
16895
      ;;
16896
16897
    newsos6)
16898
      lt_prog_compiler_pic_GCJ='-KPIC'
16899
      lt_prog_compiler_static_GCJ='-Bstatic'
16900
      ;;
16901
16902
    linux* | k*bsd*-gnu)
16903
      case $cc_basename in
16904
      icc* | ecc*)
16905
	lt_prog_compiler_wl_GCJ='-Wl,'
16906
	lt_prog_compiler_pic_GCJ='-KPIC'
16907
	lt_prog_compiler_static_GCJ='-static'
16908
        ;;
16909
      pgcc* | pgf77* | pgf90* | pgf95*)
16910
        # Portland Group compilers (*not* the Pentium gcc compiler,
16911
	# which looks to be a dead project)
16912
	lt_prog_compiler_wl_GCJ='-Wl,'
16913
	lt_prog_compiler_pic_GCJ='-fpic'
16914
	lt_prog_compiler_static_GCJ='-Bstatic'
16915
        ;;
16916
      ccc*)
16917
        lt_prog_compiler_wl_GCJ='-Wl,'
16918
        # All Alpha code is PIC.
16919
        lt_prog_compiler_static_GCJ='-non_shared'
16920
        ;;
16921
      *)
16922
        case `$CC -V 2>&1 | sed 5q` in
16923
	*Sun\ C*)
16924
	  # Sun C 5.9
16925
	  lt_prog_compiler_pic_GCJ='-KPIC'
16926
	  lt_prog_compiler_static_GCJ='-Bstatic'
16927
	  lt_prog_compiler_wl_GCJ='-Wl,'
16928
	  ;;
16929
	*Sun\ F*)
16930
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16931
	  lt_prog_compiler_pic_GCJ='-KPIC'
16932
	  lt_prog_compiler_static_GCJ='-Bstatic'
16933
	  lt_prog_compiler_wl_GCJ=''
16934
	  ;;
16935
	esac
16936
	;;
16937
      esac
16938
      ;;
16939
16940
    osf3* | osf4* | osf5*)
16941
      lt_prog_compiler_wl_GCJ='-Wl,'
16942
      # All OSF/1 code is PIC.
16943
      lt_prog_compiler_static_GCJ='-non_shared'
16944
      ;;
16945
16946
    rdos*)
16947
      lt_prog_compiler_static_GCJ='-non_shared'
16948
      ;;
16949
16950
    solaris*)
16951
      lt_prog_compiler_pic_GCJ='-KPIC'
16952
      lt_prog_compiler_static_GCJ='-Bstatic'
16953
      case $cc_basename in
16954
      f77* | f90* | f95*)
16955
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16956
      *)
16957
	lt_prog_compiler_wl_GCJ='-Wl,';;
16958
      esac
16959
      ;;
16960
16961
    sunos4*)
16962
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16963
      lt_prog_compiler_pic_GCJ='-PIC'
16964
      lt_prog_compiler_static_GCJ='-Bstatic'
16965
      ;;
16966
16967
    sysv4 | sysv4.2uw2* | sysv4.3*)
16968
      lt_prog_compiler_wl_GCJ='-Wl,'
16969
      lt_prog_compiler_pic_GCJ='-KPIC'
16970
      lt_prog_compiler_static_GCJ='-Bstatic'
16971
      ;;
16972
16973
    sysv4*MP*)
16974
      if test -d /usr/nec ;then
16975
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16976
	lt_prog_compiler_static_GCJ='-Bstatic'
16977
      fi
16978
      ;;
16979
16980
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16981
      lt_prog_compiler_wl_GCJ='-Wl,'
16982
      lt_prog_compiler_pic_GCJ='-KPIC'
16983
      lt_prog_compiler_static_GCJ='-Bstatic'
16984
      ;;
16985
16986
    unicos*)
16987
      lt_prog_compiler_wl_GCJ='-Wl,'
16988
      lt_prog_compiler_can_build_shared_GCJ=no
16989
      ;;
16990
16991
    uts4*)
16992
      lt_prog_compiler_pic_GCJ='-pic'
16993
      lt_prog_compiler_static_GCJ='-Bstatic'
16994
      ;;
16995
16996
    *)
16997
      lt_prog_compiler_can_build_shared_GCJ=no
16998
      ;;
16999
    esac
17000
  fi
17001
17002
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17003
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17004
17005
#
17006
# Check to make sure the PIC flag actually works.
17007
#
17008
if test -n "$lt_prog_compiler_pic_GCJ"; then
17009
17010
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17011
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17012
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17013
  echo $ECHO_N "(cached) $ECHO_C" >&6
17014
else
17015
  lt_cv_prog_compiler_pic_works_GCJ=no
17016
  ac_outfile=conftest.$ac_objext
17017
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17018
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17019
   # Insert the option either (1) after the last *FLAGS variable, or
17020
   # (2) before a word containing "conftest.", or (3) at the end.
17021
   # Note that $ac_compile itself does not contain backslashes and begins
17022
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17023
   # The option is referenced via a variable to avoid confusing sed.
17024
   lt_compile=`echo "$ac_compile" | $SED \
17025
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027
   -e 's:$: $lt_compiler_flag:'`
17028
   (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029
   (eval "$lt_compile" 2>conftest.err)
17030
   ac_status=$?
17031
   cat conftest.err >&5
17032
   echo "$as_me:17032: \$? = $ac_status" >&5
17033
   if (exit $ac_status) && test -s "$ac_outfile"; then
17034
     # The compiler can only warn and ignore the option if not recognized
17035
     # So say no if there are warnings other than the usual output.
17036
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17037
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17038
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17039
       lt_cv_prog_compiler_pic_works_GCJ=yes
17040
     fi
17041
   fi
17042
   $rm conftest*
17043
17044
fi
17045
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17046
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17047
17048
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17049
    case $lt_prog_compiler_pic_GCJ in
17050
     "" | " "*) ;;
17051
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17052
     esac
17053
else
17054
    lt_prog_compiler_pic_GCJ=
17055
     lt_prog_compiler_can_build_shared_GCJ=no
17056
fi
17057
17058
fi
17059
case $host_os in
17060
  # For platforms which do not support PIC, -DPIC is meaningless:
17061
  *djgpp*)
17062
    lt_prog_compiler_pic_GCJ=
17063
    ;;
17064
  *)
17065
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17066
    ;;
17067
esac
17068
17069
#
17070
# Check to make sure the static flag actually works.
17071
#
17072
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17073
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17074
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17075
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17076
  echo $ECHO_N "(cached) $ECHO_C" >&6
17077
else
17078
  lt_cv_prog_compiler_static_works_GCJ=no
17079
   save_LDFLAGS="$LDFLAGS"
17080
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17081
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17082
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17083
     # The linker can only warn and ignore the option if not recognized
17084
     # So say no if there are warnings
17085
     if test -s conftest.err; then
17086
       # Append any errors to the config.log.
17087
       cat conftest.err 1>&5
17088
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17089
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17090
       if diff conftest.exp conftest.er2 >/dev/null; then
17091
         lt_cv_prog_compiler_static_works_GCJ=yes
17092
       fi
17093
     else
17094
       lt_cv_prog_compiler_static_works_GCJ=yes
17095
     fi
17096
   fi
17097
   $rm -r conftest*
17098
   LDFLAGS="$save_LDFLAGS"
17099
17100
fi
17101
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17102
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17103
17104
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17105
    :
17106
else
17107
    lt_prog_compiler_static_GCJ=
17108
fi
17109
17110
17111
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17112
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17113
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17114
  echo $ECHO_N "(cached) $ECHO_C" >&6
17115
else
17116
  lt_cv_prog_compiler_c_o_GCJ=no
17117
   $rm -r conftest 2>/dev/null
17118
   mkdir conftest
17119
   cd conftest
17120
   mkdir out
17121
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17122
17123
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17124
   # Insert the option either (1) after the last *FLAGS variable, or
17125
   # (2) before a word containing "conftest.", or (3) at the end.
17126
   # Note that $ac_compile itself does not contain backslashes and begins
17127
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17128
   lt_compile=`echo "$ac_compile" | $SED \
17129
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17130
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17131
   -e 's:$: $lt_compiler_flag:'`
17132
   (eval echo "\"\$as_me:17132: $lt_compile\"" >&5)
17133
   (eval "$lt_compile" 2>out/conftest.err)
17134
   ac_status=$?
17135
   cat out/conftest.err >&5
17136
   echo "$as_me:17136: \$? = $ac_status" >&5
17137
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17138
   then
17139
     # The compiler can only warn and ignore the option if not recognized
17140
     # So say no if there are warnings
17141
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17142
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17143
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17144
       lt_cv_prog_compiler_c_o_GCJ=yes
17145
     fi
17146
   fi
17147
   chmod u+w . 2>&5
17148
   $rm conftest*
17149
   # SGI C++ compiler will create directory out/ii_files/ for
17150
   # template instantiation
17151
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17152
   $rm out/* && rmdir out
17153
   cd ..
17154
   rmdir conftest
17155
   $rm conftest*
17156
17157
fi
17158
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17159
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17160
17161
17162
hard_links="nottested"
17163
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17164
  # do not overwrite the value of need_locks provided by the user
17165
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17166
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17167
  hard_links=yes
17168
  $rm conftest*
17169
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17170
  touch conftest.a
17171
  ln conftest.a conftest.b 2>&5 || hard_links=no
17172
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17173
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17174
echo "${ECHO_T}$hard_links" >&6; }
17175
  if test "$hard_links" = no; then
17176
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17177
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17178
    need_locks=warn
17179
  fi
17180
else
17181
  need_locks=no
17182
fi
17183
17184
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17185
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17186
17187
  runpath_var=
17188
  allow_undefined_flag_GCJ=
17189
  enable_shared_with_static_runtimes_GCJ=no
17190
  archive_cmds_GCJ=
17191
  archive_expsym_cmds_GCJ=
17192
  old_archive_From_new_cmds_GCJ=
17193
  old_archive_from_expsyms_cmds_GCJ=
17194
  export_dynamic_flag_spec_GCJ=
17195
  whole_archive_flag_spec_GCJ=
17196
  thread_safe_flag_spec_GCJ=
17197
  hardcode_libdir_flag_spec_GCJ=
17198
  hardcode_libdir_flag_spec_ld_GCJ=
17199
  hardcode_libdir_separator_GCJ=
17200
  hardcode_direct_GCJ=no
17201
  hardcode_minus_L_GCJ=no
17202
  hardcode_shlibpath_var_GCJ=unsupported
17203
  link_all_deplibs_GCJ=unknown
17204
  hardcode_automatic_GCJ=no
17205
  module_cmds_GCJ=
17206
  module_expsym_cmds_GCJ=
17207
  always_export_symbols_GCJ=no
17208
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17209
  # include_expsyms should be a list of space-separated symbols to be *always*
17210
  # included in the symbol list
17211
  include_expsyms_GCJ=
17212
  # exclude_expsyms can be an extended regexp of symbols to exclude
17213
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17214
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17215
  # as well as any symbol that contains `d'.
17216
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17217
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17218
  # platforms (ab)use it in PIC code, but their linkers get confused if
17219
  # the symbol is explicitly referenced.  Since portable code cannot
17220
  # rely on this symbol name, it's probably fine to never include it in
17221
  # preloaded symbol tables.
17222
  # Exclude shared library initialization/finalization symbols.
17223
  extract_expsyms_cmds=
17224
  # Just being paranoid about ensuring that cc_basename is set.
17225
  for cc_temp in $compiler""; do
17226
  case $cc_temp in
17227
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17228
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17229
    \-*) ;;
17230
    *) break;;
17231
  esac
17232
done
17233
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17234
17235
  case $host_os in
17236
  cygwin* | mingw* | pw32*)
17237
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17238
    # When not using gcc, we currently assume that we are using
17239
    # Microsoft Visual C++.
17240
    if test "$GCC" != yes; then
17241
      with_gnu_ld=no
17242
    fi
17243
    ;;
17244
  interix*)
17245
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17246
    with_gnu_ld=yes
17247
    ;;
17248
  openbsd*)
17249
    with_gnu_ld=no
17250
    ;;
17251
  esac
17252
17253
  ld_shlibs_GCJ=yes
17254
  if test "$with_gnu_ld" = yes; then
17255
    # If archive_cmds runs LD, not CC, wlarc should be empty
17256
    wlarc='${wl}'
17257
17258
    # Set some defaults for GNU ld with shared library support. These
17259
    # are reset later if shared libraries are not supported. Putting them
17260
    # here allows them to be overridden if necessary.
17261
    runpath_var=LD_RUN_PATH
17262
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17263
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17264
    # ancient GNU ld didn't support --whole-archive et. al.
17265
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17266
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17267
      else
17268
  	whole_archive_flag_spec_GCJ=
17269
    fi
17270
    supports_anon_versioning=no
17271
    case `$LD -v 2>/dev/null` in
17272
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17273
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17274
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17275
      *\ 2.11.*) ;; # other 2.11 versions
17276
      *) supports_anon_versioning=yes ;;
17277
    esac
17278
17279
    # See if GNU ld supports shared libraries.
17280
    case $host_os in
17281
    aix[3-9]*)
17282
      # On AIX/PPC, the GNU linker is very broken
17283
      if test "$host_cpu" != ia64; then
17284
	ld_shlibs_GCJ=no
17285
	cat <<EOF 1>&2
17286
17287
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17288
*** to be unable to reliably create shared libraries on AIX.
17289
*** Therefore, libtool is disabling shared libraries support.  If you
17290
*** really care for shared libraries, you may want to modify your PATH
17291
*** so that a non-GNU linker is found, and then restart.
17292
17293
EOF
17294
      fi
17295
      ;;
17296
17297
    amigaos*)
17298
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17299
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17300
      hardcode_minus_L_GCJ=yes
17301
17302
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17303
      # that the semantics of dynamic libraries on AmigaOS, at least up
17304
      # to version 4, is to share data among multiple programs linked
17305
      # with the same dynamic library.  Since this doesn't match the
17306
      # behavior of shared libraries on other platforms, we can't use
17307
      # them.
17308
      ld_shlibs_GCJ=no
17309
      ;;
17310
17311
    beos*)
17312
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17313
	allow_undefined_flag_GCJ=unsupported
17314
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17315
	# support --undefined.  This deserves some investigation.  FIXME
17316
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17317
      else
17318
	ld_shlibs_GCJ=no
17319
      fi
17320
      ;;
17321
17322
    cygwin* | mingw* | pw32*)
17323
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17324
      # as there is no search path for DLLs.
17325
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17326
      allow_undefined_flag_GCJ=unsupported
17327
      always_export_symbols_GCJ=no
17328
      enable_shared_with_static_runtimes_GCJ=yes
17329
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17330
17331
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17332
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17333
	# If the export-symbols file already is a .def file (1st line
17334
	# is EXPORTS), use it as is; otherwise, prepend...
17335
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17336
	  cp $export_symbols $output_objdir/$soname.def;
17337
	else
17338
	  echo EXPORTS > $output_objdir/$soname.def;
17339
	  cat $export_symbols >> $output_objdir/$soname.def;
17340
	fi~
17341
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17342
      else
17343
	ld_shlibs_GCJ=no
17344
      fi
17345
      ;;
17346
17347
    interix[3-9]*)
17348
      hardcode_direct_GCJ=no
17349
      hardcode_shlibpath_var_GCJ=no
17350
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17351
      export_dynamic_flag_spec_GCJ='${wl}-E'
17352
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17353
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17354
      # default) and relocated if they conflict, which is a slow very memory
17355
      # consuming and fragmenting process.  To avoid this, we pick a random,
17356
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17357
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17358
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17359
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17360
      ;;
17361
17362
    gnu* | linux* | k*bsd*-gnu)
17363
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17364
	tmp_addflag=
17365
	case $cc_basename,$host_cpu in
17366
	pgcc*)				# Portland Group C compiler
17367
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17368
	  tmp_addflag=' $pic_flag'
17369
	  ;;
17370
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17371
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17372
	  tmp_addflag=' $pic_flag -Mnomain' ;;
17373
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17374
	  tmp_addflag=' -i_dynamic' ;;
17375
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17376
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17377
	ifc* | ifort*)			# Intel Fortran compiler
17378
	  tmp_addflag=' -nofor_main' ;;
17379
	esac
17380
	case `$CC -V 2>&1 | sed 5q` in
17381
	*Sun\ C*)			# Sun C 5.9
17382
	  whole_archive_flag_spec_GCJ='${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'
17383
	  tmp_sharedflag='-G' ;;
17384
	*Sun\ F*)			# Sun Fortran 8.3
17385
	  tmp_sharedflag='-G' ;;
17386
	*)
17387
	  tmp_sharedflag='-shared' ;;
17388
	esac
17389
	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17390
17391
	if test $supports_anon_versioning = yes; then
17392
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17393
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17394
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17395
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17396
	fi
17397
	link_all_deplibs_GCJ=no
17398
      else
17399
	ld_shlibs_GCJ=no
17400
      fi
17401
      ;;
17402
17403
    netbsd* | netbsdelf*-gnu)
17404
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17405
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17406
	wlarc=
17407
      else
17408
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17409
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17410
      fi
17411
      ;;
17412
17413
    solaris*)
17414
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17415
	ld_shlibs_GCJ=no
17416
	cat <<EOF 1>&2
17417
17418
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17419
*** create shared libraries on Solaris systems.  Therefore, libtool
17420
*** is disabling shared libraries support.  We urge you to upgrade GNU
17421
*** binutils to release 2.9.1 or newer.  Another option is to modify
17422
*** your PATH or compiler configuration so that the native linker is
17423
*** used, and then restart.
17424
17425
EOF
17426
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17427
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17428
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17429
      else
17430
	ld_shlibs_GCJ=no
17431
      fi
17432
      ;;
17433
17434
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17435
      case `$LD -v 2>&1` in
17436
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17437
	ld_shlibs_GCJ=no
17438
	cat <<_LT_EOF 1>&2
17439
17440
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17441
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17442
*** is disabling shared libraries support.  We urge you to upgrade GNU
17443
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17444
*** your PATH or compiler configuration so that the native linker is
17445
*** used, and then restart.
17446
17447
_LT_EOF
17448
	;;
17449
	*)
17450
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17451
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17452
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17453
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17454
	  else
17455
	    ld_shlibs_GCJ=no
17456
	  fi
17457
	;;
17458
      esac
17459
      ;;
17460
17461
    sunos4*)
17462
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17463
      wlarc=
17464
      hardcode_direct_GCJ=yes
17465
      hardcode_shlibpath_var_GCJ=no
17466
      ;;
17467
17468
    *)
17469
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17470
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17472
      else
17473
	ld_shlibs_GCJ=no
17474
      fi
17475
      ;;
17476
    esac
17477
17478
    if test "$ld_shlibs_GCJ" = no; then
17479
      runpath_var=
17480
      hardcode_libdir_flag_spec_GCJ=
17481
      export_dynamic_flag_spec_GCJ=
17482
      whole_archive_flag_spec_GCJ=
17483
    fi
17484
  else
17485
    # PORTME fill in a description of your system's linker (not GNU ld)
17486
    case $host_os in
17487
    aix3*)
17488
      allow_undefined_flag_GCJ=unsupported
17489
      always_export_symbols_GCJ=yes
17490
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17491
      # Note: this linker hardcodes the directories in LIBPATH if there
17492
      # are no directories specified by -L.
17493
      hardcode_minus_L_GCJ=yes
17494
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17495
	# Neither direct hardcoding nor static linking is supported with a
17496
	# broken collect2.
17497
	hardcode_direct_GCJ=unsupported
17498
      fi
17499
      ;;
17500
17501
    aix[4-9]*)
17502
      if test "$host_cpu" = ia64; then
17503
	# On IA64, the linker does run time linking by default, so we don't
17504
	# have to do anything special.
17505
	aix_use_runtimelinking=no
17506
	exp_sym_flag='-Bexport'
17507
	no_entry_flag=""
17508
      else
17509
	# If we're using GNU nm, then we don't want the "-C" option.
17510
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17511
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17512
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17513
	else
17514
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17515
	fi
17516
	aix_use_runtimelinking=no
17517
17518
	# Test if we are trying to use run time linking or normal
17519
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17520
	# need to do runtime linking.
17521
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17522
	  for ld_flag in $LDFLAGS; do
17523
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17524
  	    aix_use_runtimelinking=yes
17525
  	    break
17526
  	  fi
17527
	  done
17528
	  ;;
17529
	esac
17530
17531
	exp_sym_flag='-bexport'
17532
	no_entry_flag='-bnoentry'
17533
      fi
17534
17535
      # When large executables or shared objects are built, AIX ld can
17536
      # have problems creating the table of contents.  If linking a library
17537
      # or program results in "error TOC overflow" add -mminimal-toc to
17538
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17539
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17540
17541
      archive_cmds_GCJ=''
17542
      hardcode_direct_GCJ=yes
17543
      hardcode_libdir_separator_GCJ=':'
17544
      link_all_deplibs_GCJ=yes
17545
17546
      if test "$GCC" = yes; then
17547
	case $host_os in aix4.[012]|aix4.[012].*)
17548
	# We only want to do this on AIX 4.2 and lower, the check
17549
	# below for broken collect2 doesn't work under 4.3+
17550
	  collect2name=`${CC} -print-prog-name=collect2`
17551
	  if test -f "$collect2name" && \
17552
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17553
	  then
17554
  	  # We have reworked collect2
17555
  	  :
17556
	  else
17557
  	  # We have old collect2
17558
  	  hardcode_direct_GCJ=unsupported
17559
  	  # It fails to find uninstalled libraries when the uninstalled
17560
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17561
  	  # to unsupported forces relinking
17562
  	  hardcode_minus_L_GCJ=yes
17563
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17564
  	  hardcode_libdir_separator_GCJ=
17565
	  fi
17566
	  ;;
17567
	esac
17568
	shared_flag='-shared'
17569
	if test "$aix_use_runtimelinking" = yes; then
17570
	  shared_flag="$shared_flag "'${wl}-G'
17571
	fi
17572
      else
17573
	# not using gcc
17574
	if test "$host_cpu" = ia64; then
17575
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17576
  	# chokes on -Wl,-G. The following line is correct:
17577
	  shared_flag='-G'
17578
	else
17579
	  if test "$aix_use_runtimelinking" = yes; then
17580
	    shared_flag='${wl}-G'
17581
	  else
17582
	    shared_flag='${wl}-bM:SRE'
17583
	  fi
17584
	fi
17585
      fi
17586
17587
      # It seems that -bexpall does not export symbols beginning with
17588
      # underscore (_), so it is better to generate a list of symbols to export.
17589
      always_export_symbols_GCJ=yes
17590
      if test "$aix_use_runtimelinking" = yes; then
17591
	# Warning - without using the other runtime loading flags (-brtl),
17592
	# -berok will link without error, but may produce a broken library.
17593
	allow_undefined_flag_GCJ='-berok'
17594
       # Determine the default libpath from the value encoded in an empty executable.
17595
       cat >conftest.$ac_ext <<_ACEOF
17596
/* confdefs.h.  */
17597
_ACEOF
17598
cat confdefs.h >>conftest.$ac_ext
17599
cat >>conftest.$ac_ext <<_ACEOF
17600
/* end confdefs.h.  */
17601
17602
int
17603
main ()
17604
{
17605
17606
  ;
17607
  return 0;
17608
}
17609
_ACEOF
17610
rm -f conftest.$ac_objext conftest$ac_exeext
17611
if { (ac_try="$ac_link"
17612
case "(($ac_try" in
17613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614
  *) ac_try_echo=$ac_try;;
17615
esac
17616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617
  (eval "$ac_link") 2>conftest.er1
17618
  ac_status=$?
17619
  grep -v '^ *+' conftest.er1 >conftest.err
17620
  rm -f conftest.er1
17621
  cat conftest.err >&5
17622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623
  (exit $ac_status); } && {
17624
	 test -z "$ac_c_werror_flag" ||
17625
	 test ! -s conftest.err
17626
       } && test -s conftest$ac_exeext &&
17627
       $as_test_x conftest$ac_exeext; then
17628
17629
lt_aix_libpath_sed='
17630
    /Import File Strings/,/^$/ {
17631
	/^0/ {
17632
	    s/^0  *\(.*\)$/\1/
17633
	    p
17634
	}
17635
    }'
17636
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17637
# Check for a 64-bit object if we didn't find anything.
17638
if test -z "$aix_libpath"; then
17639
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17640
fi
17641
else
17642
  echo "$as_me: failed program was:" >&5
17643
sed 's/^/| /' conftest.$ac_ext >&5
17644
17645
17646
fi
17647
17648
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17649
      conftest$ac_exeext conftest.$ac_ext
17650
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17651
17652
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17653
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17654
       else
17655
	if test "$host_cpu" = ia64; then
17656
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17657
	  allow_undefined_flag_GCJ="-z nodefs"
17658
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17659
	else
17660
	 # Determine the default libpath from the value encoded in an empty executable.
17661
	 cat >conftest.$ac_ext <<_ACEOF
17662
/* confdefs.h.  */
17663
_ACEOF
17664
cat confdefs.h >>conftest.$ac_ext
17665
cat >>conftest.$ac_ext <<_ACEOF
17666
/* end confdefs.h.  */
17667
17668
int
17669
main ()
17670
{
17671
17672
  ;
17673
  return 0;
17674
}
17675
_ACEOF
17676
rm -f conftest.$ac_objext conftest$ac_exeext
17677
if { (ac_try="$ac_link"
17678
case "(($ac_try" in
17679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680
  *) ac_try_echo=$ac_try;;
17681
esac
17682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683
  (eval "$ac_link") 2>conftest.er1
17684
  ac_status=$?
17685
  grep -v '^ *+' conftest.er1 >conftest.err
17686
  rm -f conftest.er1
17687
  cat conftest.err >&5
17688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689
  (exit $ac_status); } && {
17690
	 test -z "$ac_c_werror_flag" ||
17691
	 test ! -s conftest.err
17692
       } && test -s conftest$ac_exeext &&
17693
       $as_test_x conftest$ac_exeext; then
17694
17695
lt_aix_libpath_sed='
17696
    /Import File Strings/,/^$/ {
17697
	/^0/ {
17698
	    s/^0  *\(.*\)$/\1/
17699
	    p
17700
	}
17701
    }'
17702
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17703
# Check for a 64-bit object if we didn't find anything.
17704
if test -z "$aix_libpath"; then
17705
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17706
fi
17707
else
17708
  echo "$as_me: failed program was:" >&5
17709
sed 's/^/| /' conftest.$ac_ext >&5
17710
17711
17712
fi
17713
17714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17715
      conftest$ac_exeext conftest.$ac_ext
17716
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17717
17718
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17719
	  # Warning - without using the other run time loading flags,
17720
	  # -berok will link without error, but may produce a broken library.
17721
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17722
	  allow_undefined_flag_GCJ=' ${wl}-berok'
17723
	  # Exported symbols can be pulled into shared objects from archives
17724
	  whole_archive_flag_spec_GCJ='$convenience'
17725
	  archive_cmds_need_lc_GCJ=yes
17726
	  # This is similar to how AIX traditionally builds its shared libraries.
17727
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17728
	fi
17729
      fi
17730
      ;;
17731
17732
    amigaos*)
17733
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17734
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17735
      hardcode_minus_L_GCJ=yes
17736
      # see comment about different semantics on the GNU ld section
17737
      ld_shlibs_GCJ=no
17738
      ;;
17739
17740
    bsdi[45]*)
17741
      export_dynamic_flag_spec_GCJ=-rdynamic
17742
      ;;
17743
17744
    cygwin* | mingw* | pw32*)
17745
      # When not using gcc, we currently assume that we are using
17746
      # Microsoft Visual C++.
17747
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17748
      # no search path for DLLs.
17749
      hardcode_libdir_flag_spec_GCJ=' '
17750
      allow_undefined_flag_GCJ=unsupported
17751
      # Tell ltmain to make .lib files, not .a files.
17752
      libext=lib
17753
      # Tell ltmain to make .dll files, not .so files.
17754
      shrext_cmds=".dll"
17755
      # FIXME: Setting linknames here is a bad hack.
17756
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17757
      # The linker will automatically build a .lib file if we build a DLL.
17758
      old_archive_From_new_cmds_GCJ='true'
17759
      # FIXME: Should let the user specify the lib program.
17760
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17761
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17762
      enable_shared_with_static_runtimes_GCJ=yes
17763
      ;;
17764
17765
    darwin* | rhapsody*)
17766
      case $host_os in
17767
        rhapsody* | darwin1.[012])
17768
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17769
         ;;
17770
       *) # Darwin 1.3 on
17771
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17772
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17773
         else
17774
           case ${MACOSX_DEPLOYMENT_TARGET} in
17775
             10.[012])
17776
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17777
               ;;
17778
             10.*)
17779
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17780
               ;;
17781
           esac
17782
         fi
17783
         ;;
17784
      esac
17785
      archive_cmds_need_lc_GCJ=no
17786
      hardcode_direct_GCJ=no
17787
      hardcode_automatic_GCJ=yes
17788
      hardcode_shlibpath_var_GCJ=unsupported
17789
      whole_archive_flag_spec_GCJ=''
17790
      link_all_deplibs_GCJ=yes
17791
    if test "$GCC" = yes ; then
17792
    	output_verbose_link_cmd='echo'
17793
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17794
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17795
        archive_expsym_cmds_GCJ="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}"
17796
        module_expsym_cmds_GCJ="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}"
17797
    else
17798
      case $cc_basename in
17799
        xlc*)
17800
         output_verbose_link_cmd='echo'
17801
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17802
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17803
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17804
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17805
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17806
          ;;
17807
       *)
17808
         ld_shlibs_GCJ=no
17809
          ;;
17810
      esac
17811
    fi
17812
      ;;
17813
17814
    dgux*)
17815
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17816
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817
      hardcode_shlibpath_var_GCJ=no
17818
      ;;
17819
17820
    freebsd1*)
17821
      ld_shlibs_GCJ=no
17822
      ;;
17823
17824
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17825
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17826
    # does not break anything, and helps significantly (at the cost of a little
17827
    # extra space).
17828
    freebsd2.2*)
17829
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17830
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17831
      hardcode_direct_GCJ=yes
17832
      hardcode_shlibpath_var_GCJ=no
17833
      ;;
17834
17835
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17836
    freebsd2*)
17837
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17838
      hardcode_direct_GCJ=yes
17839
      hardcode_minus_L_GCJ=yes
17840
      hardcode_shlibpath_var_GCJ=no
17841
      ;;
17842
17843
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17844
    freebsd* | dragonfly*)
17845
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17846
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17847
      hardcode_direct_GCJ=yes
17848
      hardcode_shlibpath_var_GCJ=no
17849
      ;;
17850
17851
    hpux9*)
17852
      if test "$GCC" = yes; then
17853
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17854
      else
17855
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17856
      fi
17857
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17858
      hardcode_libdir_separator_GCJ=:
17859
      hardcode_direct_GCJ=yes
17860
17861
      # hardcode_minus_L: Not really in the search PATH,
17862
      # but as the default location of the library.
17863
      hardcode_minus_L_GCJ=yes
17864
      export_dynamic_flag_spec_GCJ='${wl}-E'
17865
      ;;
17866
17867
    hpux10*)
17868
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17869
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17870
      else
17871
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17872
      fi
17873
      if test "$with_gnu_ld" = no; then
17874
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17875
	hardcode_libdir_separator_GCJ=:
17876
17877
	hardcode_direct_GCJ=yes
17878
	export_dynamic_flag_spec_GCJ='${wl}-E'
17879
17880
	# hardcode_minus_L: Not really in the search PATH,
17881
	# but as the default location of the library.
17882
	hardcode_minus_L_GCJ=yes
17883
      fi
17884
      ;;
17885
17886
    hpux11*)
17887
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17888
	case $host_cpu in
17889
	hppa*64*)
17890
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17891
	  ;;
17892
	ia64*)
17893
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17894
	  ;;
17895
	*)
17896
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17897
	  ;;
17898
	esac
17899
      else
17900
	case $host_cpu in
17901
	hppa*64*)
17902
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17903
	  ;;
17904
	ia64*)
17905
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17906
	  ;;
17907
	*)
17908
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17909
	  ;;
17910
	esac
17911
      fi
17912
      if test "$with_gnu_ld" = no; then
17913
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17914
	hardcode_libdir_separator_GCJ=:
17915
17916
	case $host_cpu in
17917
	hppa*64*|ia64*)
17918
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17919
	  hardcode_direct_GCJ=no
17920
	  hardcode_shlibpath_var_GCJ=no
17921
	  ;;
17922
	*)
17923
	  hardcode_direct_GCJ=yes
17924
	  export_dynamic_flag_spec_GCJ='${wl}-E'
17925
17926
	  # hardcode_minus_L: Not really in the search PATH,
17927
	  # but as the default location of the library.
17928
	  hardcode_minus_L_GCJ=yes
17929
	  ;;
17930
	esac
17931
      fi
17932
      ;;
17933
17934
    irix5* | irix6* | nonstopux*)
17935
      if test "$GCC" = yes; then
17936
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17937
      else
17938
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17939
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17940
      fi
17941
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942
      hardcode_libdir_separator_GCJ=:
17943
      link_all_deplibs_GCJ=yes
17944
      ;;
17945
17946
    netbsd* | netbsdelf*-gnu)
17947
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17948
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17949
      else
17950
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17951
      fi
17952
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17953
      hardcode_direct_GCJ=yes
17954
      hardcode_shlibpath_var_GCJ=no
17955
      ;;
17956
17957
    newsos6)
17958
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959
      hardcode_direct_GCJ=yes
17960
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17961
      hardcode_libdir_separator_GCJ=:
17962
      hardcode_shlibpath_var_GCJ=no
17963
      ;;
17964
17965
    openbsd*)
17966
      if test -f /usr/libexec/ld.so; then
17967
	hardcode_direct_GCJ=yes
17968
	hardcode_shlibpath_var_GCJ=no
17969
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17970
	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17971
	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17972
	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17973
	  export_dynamic_flag_spec_GCJ='${wl}-E'
17974
	else
17975
	  case $host_os in
17976
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17977
	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17978
	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17979
	     ;;
17980
	   *)
17981
	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17982
	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17983
	     ;;
17984
	  esac
17985
        fi
17986
      else
17987
	ld_shlibs_GCJ=no
17988
      fi
17989
      ;;
17990
17991
    os2*)
17992
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17993
      hardcode_minus_L_GCJ=yes
17994
      allow_undefined_flag_GCJ=unsupported
17995
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17996
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17997
      ;;
17998
17999
    osf3*)
18000
      if test "$GCC" = yes; then
18001
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18002
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18003
      else
18004
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18005
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18006
      fi
18007
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18008
      hardcode_libdir_separator_GCJ=:
18009
      ;;
18010
18011
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18012
      if test "$GCC" = yes; then
18013
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18014
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18015
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18016
      else
18017
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18018
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18019
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18020
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18021
18022
	# Both c and cxx compiler support -rpath directly
18023
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18024
      fi
18025
      hardcode_libdir_separator_GCJ=:
18026
      ;;
18027
18028
    solaris*)
18029
      no_undefined_flag_GCJ=' -z text'
18030
      if test "$GCC" = yes; then
18031
	wlarc='${wl}'
18032
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18033
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18034
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18035
      else
18036
	wlarc=''
18037
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18039
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18040
      fi
18041
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18042
      hardcode_shlibpath_var_GCJ=no
18043
      case $host_os in
18044
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18045
      *)
18046
	# The compiler driver will combine and reorder linker options,
18047
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18048
	# but is careful enough not to reorder.
18049
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18050
	if test "$GCC" = yes; then
18051
	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18052
	else
18053
	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18054
	fi
18055
	;;
18056
      esac
18057
      link_all_deplibs_GCJ=yes
18058
      ;;
18059
18060
    sunos4*)
18061
      if test "x$host_vendor" = xsequent; then
18062
	# Use $CC to link under sequent, because it throws in some extra .o
18063
	# files that make .init and .fini sections work.
18064
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18065
      else
18066
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18067
      fi
18068
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18069
      hardcode_direct_GCJ=yes
18070
      hardcode_minus_L_GCJ=yes
18071
      hardcode_shlibpath_var_GCJ=no
18072
      ;;
18073
18074
    sysv4)
18075
      case $host_vendor in
18076
	sni)
18077
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078
	  hardcode_direct_GCJ=yes # is this really true???
18079
	;;
18080
	siemens)
18081
	  ## LD is ld it makes a PLAMLIB
18082
	  ## CC just makes a GrossModule.
18083
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18084
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18085
	  hardcode_direct_GCJ=no
18086
        ;;
18087
	motorola)
18088
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18090
	;;
18091
      esac
18092
      runpath_var='LD_RUN_PATH'
18093
      hardcode_shlibpath_var_GCJ=no
18094
      ;;
18095
18096
    sysv4.3*)
18097
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098
      hardcode_shlibpath_var_GCJ=no
18099
      export_dynamic_flag_spec_GCJ='-Bexport'
18100
      ;;
18101
18102
    sysv4*MP*)
18103
      if test -d /usr/nec; then
18104
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18105
	hardcode_shlibpath_var_GCJ=no
18106
	runpath_var=LD_RUN_PATH
18107
	hardcode_runpath_var=yes
18108
	ld_shlibs_GCJ=yes
18109
      fi
18110
      ;;
18111
18112
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18113
      no_undefined_flag_GCJ='${wl}-z,text'
18114
      archive_cmds_need_lc_GCJ=no
18115
      hardcode_shlibpath_var_GCJ=no
18116
      runpath_var='LD_RUN_PATH'
18117
18118
      if test "$GCC" = yes; then
18119
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121
      else
18122
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124
      fi
18125
      ;;
18126
18127
    sysv5* | sco3.2v5* | sco5v6*)
18128
      # Note: We can NOT use -z defs as we might desire, because we do not
18129
      # link with -lc, and that would cause any symbols used from libc to
18130
      # always be unresolved, which means just about no library would
18131
      # ever link correctly.  If we're not using GNU ld we use -z text
18132
      # though, which does catch some bad symbols but isn't as heavy-handed
18133
      # as -z defs.
18134
      no_undefined_flag_GCJ='${wl}-z,text'
18135
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18136
      archive_cmds_need_lc_GCJ=no
18137
      hardcode_shlibpath_var_GCJ=no
18138
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18139
      hardcode_libdir_separator_GCJ=':'
18140
      link_all_deplibs_GCJ=yes
18141
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18142
      runpath_var='LD_RUN_PATH'
18143
18144
      if test "$GCC" = yes; then
18145
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147
      else
18148
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150
      fi
18151
      ;;
18152
18153
    uts4*)
18154
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18155
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18156
      hardcode_shlibpath_var_GCJ=no
18157
      ;;
18158
18159
    *)
18160
      ld_shlibs_GCJ=no
18161
      ;;
18162
    esac
18163
  fi
18164
18165
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18166
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18167
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18168
18169
#
18170
# Do we need to explicitly link libc?
18171
#
18172
case "x$archive_cmds_need_lc_GCJ" in
18173
x|xyes)
18174
  # Assume -lc should be added
18175
  archive_cmds_need_lc_GCJ=yes
18176
18177
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18178
    case $archive_cmds_GCJ in
18179
    *'~'*)
18180
      # FIXME: we may have to deal with multi-command sequences.
18181
      ;;
18182
    '$CC '*)
18183
      # Test whether the compiler implicitly links with -lc since on some
18184
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18185
      # to ld, don't add -lc before -lgcc.
18186
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18187
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18188
      $rm conftest*
18189
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18190
18191
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192
  (eval $ac_compile) 2>&5
18193
  ac_status=$?
18194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195
  (exit $ac_status); } 2>conftest.err; then
18196
        soname=conftest
18197
        lib=conftest
18198
        libobjs=conftest.$ac_objext
18199
        deplibs=
18200
        wl=$lt_prog_compiler_wl_GCJ
18201
	pic_flag=$lt_prog_compiler_pic_GCJ
18202
        compiler_flags=-v
18203
        linker_flags=-v
18204
        verstring=
18205
        output_objdir=.
18206
        libname=conftest
18207
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18208
        allow_undefined_flag_GCJ=
18209
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18210
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18211
  ac_status=$?
18212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213
  (exit $ac_status); }
18214
        then
18215
	  archive_cmds_need_lc_GCJ=no
18216
        else
18217
	  archive_cmds_need_lc_GCJ=yes
18218
        fi
18219
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18220
      else
18221
        cat conftest.err 1>&5
18222
      fi
18223
      $rm conftest*
18224
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18225
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18226
      ;;
18227
    esac
18228
  fi
18229
  ;;
18230
esac
18231
18232
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18233
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18234
library_names_spec=
18235
libname_spec='lib$name'
18236
soname_spec=
18237
shrext_cmds=".so"
18238
postinstall_cmds=
18239
postuninstall_cmds=
18240
finish_cmds=
18241
finish_eval=
18242
shlibpath_var=
18243
shlibpath_overrides_runpath=unknown
18244
version_type=none
18245
dynamic_linker="$host_os ld.so"
18246
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18247
18248
need_lib_prefix=unknown
18249
hardcode_into_libs=no
18250
18251
# when you set need_version to no, make sure it does not cause -set_version
18252
# flags to be left without arguments
18253
need_version=unknown
18254
18255
case $host_os in
18256
aix3*)
18257
  version_type=linux
18258
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18259
  shlibpath_var=LIBPATH
18260
18261
  # AIX 3 has no versioning support, so we append a major version to the name.
18262
  soname_spec='${libname}${release}${shared_ext}$major'
18263
  ;;
18264
18265
aix[4-9]*)
18266
  version_type=linux
18267
  need_lib_prefix=no
18268
  need_version=no
18269
  hardcode_into_libs=yes
18270
  if test "$host_cpu" = ia64; then
18271
    # AIX 5 supports IA64
18272
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18273
    shlibpath_var=LD_LIBRARY_PATH
18274
  else
18275
    # With GCC up to 2.95.x, collect2 would create an import file
18276
    # for dependence libraries.  The import file would start with
18277
    # the line `#! .'.  This would cause the generated library to
18278
    # depend on `.', always an invalid library.  This was fixed in
18279
    # development snapshots of GCC prior to 3.0.
18280
    case $host_os in
18281
      aix4 | aix4.[01] | aix4.[01].*)
18282
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18283
	   echo ' yes '
18284
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18285
	:
18286
      else
18287
	can_build_shared=no
18288
      fi
18289
      ;;
18290
    esac
18291
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18292
    # soname into executable. Probably we can add versioning support to
18293
    # collect2, so additional links can be useful in future.
18294
    if test "$aix_use_runtimelinking" = yes; then
18295
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18296
      # instead of lib<name>.a to let people know that these are not
18297
      # typical AIX shared libraries.
18298
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299
    else
18300
      # We preserve .a as extension for shared libraries through AIX4.2
18301
      # and later when we are not doing run time linking.
18302
      library_names_spec='${libname}${release}.a $libname.a'
18303
      soname_spec='${libname}${release}${shared_ext}$major'
18304
    fi
18305
    shlibpath_var=LIBPATH
18306
  fi
18307
  ;;
18308
18309
amigaos*)
18310
  library_names_spec='$libname.ixlibrary $libname.a'
18311
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18312
  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'
18313
  ;;
18314
18315
beos*)
18316
  library_names_spec='${libname}${shared_ext}'
18317
  dynamic_linker="$host_os ld.so"
18318
  shlibpath_var=LIBRARY_PATH
18319
  ;;
18320
18321
bsdi[45]*)
18322
  version_type=linux
18323
  need_version=no
18324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325
  soname_spec='${libname}${release}${shared_ext}$major'
18326
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18327
  shlibpath_var=LD_LIBRARY_PATH
18328
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18329
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18330
  # the default ld.so.conf also contains /usr/contrib/lib and
18331
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18332
  # libtool to hard-code these into programs
18333
  ;;
18334
18335
cygwin* | mingw* | pw32*)
18336
  version_type=windows
18337
  shrext_cmds=".dll"
18338
  need_version=no
18339
  need_lib_prefix=no
18340
18341
  case $GCC,$host_os in
18342
  yes,cygwin* | yes,mingw* | yes,pw32*)
18343
    library_names_spec='$libname.dll.a'
18344
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18345
    postinstall_cmds='base_file=`basename \${file}`~
18346
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18347
      dldir=$destdir/`dirname \$dlpath`~
18348
      test -d \$dldir || mkdir -p \$dldir~
18349
      $install_prog $dir/$dlname \$dldir/$dlname~
18350
      chmod a+x \$dldir/$dlname'
18351
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18352
      dlpath=$dir/\$dldll~
18353
       $rm \$dlpath'
18354
    shlibpath_overrides_runpath=yes
18355
18356
    case $host_os in
18357
    cygwin*)
18358
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18359
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18360
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18361
      ;;
18362
    mingw*)
18363
      # MinGW DLLs use traditional 'lib' prefix
18364
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18365
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18366
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18367
        # It is most probably a Windows format PATH printed by
18368
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18369
        # path with ; separators, and with drive letters. We can handle the
18370
        # drive letters (cygwin fileutils understands them), so leave them,
18371
        # especially as we might pass files found there to a mingw objdump,
18372
        # which wouldn't understand a cygwinified path. Ahh.
18373
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18374
      else
18375
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18376
      fi
18377
      ;;
18378
    pw32*)
18379
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18380
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18381
      ;;
18382
    esac
18383
    ;;
18384
18385
  *)
18386
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18387
    ;;
18388
  esac
18389
  dynamic_linker='Win32 ld.exe'
18390
  # FIXME: first we should search . and the directory the executable is in
18391
  shlibpath_var=PATH
18392
  ;;
18393
18394
darwin* | rhapsody*)
18395
  dynamic_linker="$host_os dyld"
18396
  version_type=darwin
18397
  need_lib_prefix=no
18398
  need_version=no
18399
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18400
  soname_spec='${libname}${release}${major}$shared_ext'
18401
  shlibpath_overrides_runpath=yes
18402
  shlibpath_var=DYLD_LIBRARY_PATH
18403
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18404
18405
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18406
  ;;
18407
18408
dgux*)
18409
  version_type=linux
18410
  need_lib_prefix=no
18411
  need_version=no
18412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18413
  soname_spec='${libname}${release}${shared_ext}$major'
18414
  shlibpath_var=LD_LIBRARY_PATH
18415
  ;;
18416
18417
freebsd1*)
18418
  dynamic_linker=no
18419
  ;;
18420
18421
freebsd* | dragonfly*)
18422
  # DragonFly does not have aout.  When/if they implement a new
18423
  # versioning mechanism, adjust this.
18424
  if test -x /usr/bin/objformat; then
18425
    objformat=`/usr/bin/objformat`
18426
  else
18427
    case $host_os in
18428
    freebsd[123]*) objformat=aout ;;
18429
    *) objformat=elf ;;
18430
    esac
18431
  fi
18432
  version_type=freebsd-$objformat
18433
  case $version_type in
18434
    freebsd-elf*)
18435
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18436
      need_version=no
18437
      need_lib_prefix=no
18438
      ;;
18439
    freebsd-*)
18440
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18441
      need_version=yes
18442
      ;;
18443
  esac
18444
  shlibpath_var=LD_LIBRARY_PATH
18445
  case $host_os in
18446
  freebsd2*)
18447
    shlibpath_overrides_runpath=yes
18448
    ;;
18449
  freebsd3.[01]* | freebsdelf3.[01]*)
18450
    shlibpath_overrides_runpath=yes
18451
    hardcode_into_libs=yes
18452
    ;;
18453
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18454
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18455
    shlibpath_overrides_runpath=no
18456
    hardcode_into_libs=yes
18457
    ;;
18458
  *) # from 4.6 on, and DragonFly
18459
    shlibpath_overrides_runpath=yes
18460
    hardcode_into_libs=yes
18461
    ;;
18462
  esac
18463
  ;;
18464
18465
gnu*)
18466
  version_type=linux
18467
  need_lib_prefix=no
18468
  need_version=no
18469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18470
  soname_spec='${libname}${release}${shared_ext}$major'
18471
  shlibpath_var=LD_LIBRARY_PATH
18472
  hardcode_into_libs=yes
18473
  ;;
18474
18475
hpux9* | hpux10* | hpux11*)
18476
  # Give a soname corresponding to the major version so that dld.sl refuses to
18477
  # link against other versions.
18478
  version_type=sunos
18479
  need_lib_prefix=no
18480
  need_version=no
18481
  case $host_cpu in
18482
  ia64*)
18483
    shrext_cmds='.so'
18484
    hardcode_into_libs=yes
18485
    dynamic_linker="$host_os dld.so"
18486
    shlibpath_var=LD_LIBRARY_PATH
18487
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18488
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18489
    soname_spec='${libname}${release}${shared_ext}$major'
18490
    if test "X$HPUX_IA64_MODE" = X32; then
18491
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18492
    else
18493
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18494
    fi
18495
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18496
    ;;
18497
   hppa*64*)
18498
     shrext_cmds='.sl'
18499
     hardcode_into_libs=yes
18500
     dynamic_linker="$host_os dld.sl"
18501
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18502
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18503
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504
     soname_spec='${libname}${release}${shared_ext}$major'
18505
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18506
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18507
     ;;
18508
   *)
18509
    shrext_cmds='.sl'
18510
    dynamic_linker="$host_os dld.sl"
18511
    shlibpath_var=SHLIB_PATH
18512
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18513
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514
    soname_spec='${libname}${release}${shared_ext}$major'
18515
    ;;
18516
  esac
18517
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18518
  postinstall_cmds='chmod 555 $lib'
18519
  ;;
18520
18521
interix[3-9]*)
18522
  version_type=linux
18523
  need_lib_prefix=no
18524
  need_version=no
18525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18526
  soname_spec='${libname}${release}${shared_ext}$major'
18527
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18528
  shlibpath_var=LD_LIBRARY_PATH
18529
  shlibpath_overrides_runpath=no
18530
  hardcode_into_libs=yes
18531
  ;;
18532
18533
irix5* | irix6* | nonstopux*)
18534
  case $host_os in
18535
    nonstopux*) version_type=nonstopux ;;
18536
    *)
18537
	if test "$lt_cv_prog_gnu_ld" = yes; then
18538
		version_type=linux
18539
	else
18540
		version_type=irix
18541
	fi ;;
18542
  esac
18543
  need_lib_prefix=no
18544
  need_version=no
18545
  soname_spec='${libname}${release}${shared_ext}$major'
18546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18547
  case $host_os in
18548
  irix5* | nonstopux*)
18549
    libsuff= shlibsuff=
18550
    ;;
18551
  *)
18552
    case $LD in # libtool.m4 will add one of these switches to LD
18553
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18554
      libsuff= shlibsuff= libmagic=32-bit;;
18555
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18556
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18557
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18558
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18559
    *) libsuff= shlibsuff= libmagic=never-match;;
18560
    esac
18561
    ;;
18562
  esac
18563
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18564
  shlibpath_overrides_runpath=no
18565
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18566
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18567
  hardcode_into_libs=yes
18568
  ;;
18569
18570
# No shared lib support for Linux oldld, aout, or coff.
18571
linux*oldld* | linux*aout* | linux*coff*)
18572
  dynamic_linker=no
18573
  ;;
18574
18575
# This must be Linux ELF.
18576
linux* | k*bsd*-gnu)
18577
  version_type=linux
18578
  need_lib_prefix=no
18579
  need_version=no
18580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581
  soname_spec='${libname}${release}${shared_ext}$major'
18582
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18583
  shlibpath_var=LD_LIBRARY_PATH
18584
  shlibpath_overrides_runpath=no
18585
  # This implies no fast_install, which is unacceptable.
18586
  # Some rework will be needed to allow for fast_install
18587
  # before this can be enabled.
18588
  hardcode_into_libs=yes
18589
18590
  # Append ld.so.conf contents to the search path
18591
  if test -f /etc/ld.so.conf; then
18592
    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' ' '`
18593
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18594
  fi
18595
18596
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18597
  # powerpc, because MkLinux only supported shared libraries with the
18598
  # GNU dynamic linker.  Since this was broken with cross compilers,
18599
  # most powerpc-linux boxes support dynamic linking these days and
18600
  # people can always --disable-shared, the test was removed, and we
18601
  # assume the GNU/Linux dynamic linker is in use.
18602
  dynamic_linker='GNU/Linux ld.so'
18603
  ;;
18604
18605
netbsdelf*-gnu)
18606
  version_type=linux
18607
  need_lib_prefix=no
18608
  need_version=no
18609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18610
  soname_spec='${libname}${release}${shared_ext}$major'
18611
  shlibpath_var=LD_LIBRARY_PATH
18612
  shlibpath_overrides_runpath=no
18613
  hardcode_into_libs=yes
18614
  dynamic_linker='NetBSD ld.elf_so'
18615
  ;;
18616
18617
netbsd*)
18618
  version_type=sunos
18619
  need_lib_prefix=no
18620
  need_version=no
18621
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18622
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18623
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18624
    dynamic_linker='NetBSD (a.out) ld.so'
18625
  else
18626
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18627
    soname_spec='${libname}${release}${shared_ext}$major'
18628
    dynamic_linker='NetBSD ld.elf_so'
18629
  fi
18630
  shlibpath_var=LD_LIBRARY_PATH
18631
  shlibpath_overrides_runpath=yes
18632
  hardcode_into_libs=yes
18633
  ;;
18634
18635
newsos6)
18636
  version_type=linux
18637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638
  shlibpath_var=LD_LIBRARY_PATH
18639
  shlibpath_overrides_runpath=yes
18640
  ;;
18641
18642
nto-qnx*)
18643
  version_type=linux
18644
  need_lib_prefix=no
18645
  need_version=no
18646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18647
  soname_spec='${libname}${release}${shared_ext}$major'
18648
  shlibpath_var=LD_LIBRARY_PATH
18649
  shlibpath_overrides_runpath=yes
18650
  ;;
18651
18652
openbsd*)
18653
  version_type=sunos
18654
  sys_lib_dlsearch_path_spec="/usr/lib"
18655
  need_lib_prefix=no
18656
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18657
  case $host_os in
18658
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18659
    *)                         need_version=no  ;;
18660
  esac
18661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18663
  shlibpath_var=LD_LIBRARY_PATH
18664
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18665
    case $host_os in
18666
      openbsd2.[89] | openbsd2.[89].*)
18667
	shlibpath_overrides_runpath=no
18668
	;;
18669
      *)
18670
	shlibpath_overrides_runpath=yes
18671
	;;
18672
      esac
18673
  else
18674
    shlibpath_overrides_runpath=yes
18675
  fi
18676
  ;;
18677
18678
os2*)
18679
  libname_spec='$name'
18680
  shrext_cmds=".dll"
18681
  need_lib_prefix=no
18682
  library_names_spec='$libname${shared_ext} $libname.a'
18683
  dynamic_linker='OS/2 ld.exe'
18684
  shlibpath_var=LIBPATH
18685
  ;;
18686
18687
osf3* | osf4* | osf5*)
18688
  version_type=osf
18689
  need_lib_prefix=no
18690
  need_version=no
18691
  soname_spec='${libname}${release}${shared_ext}$major'
18692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693
  shlibpath_var=LD_LIBRARY_PATH
18694
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18695
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18696
  ;;
18697
18698
rdos*)
18699
  dynamic_linker=no
18700
  ;;
18701
18702
solaris*)
18703
  version_type=linux
18704
  need_lib_prefix=no
18705
  need_version=no
18706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707
  soname_spec='${libname}${release}${shared_ext}$major'
18708
  shlibpath_var=LD_LIBRARY_PATH
18709
  shlibpath_overrides_runpath=yes
18710
  hardcode_into_libs=yes
18711
  # ldd complains unless libraries are executable
18712
  postinstall_cmds='chmod +x $lib'
18713
  ;;
18714
18715
sunos4*)
18716
  version_type=sunos
18717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18718
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18719
  shlibpath_var=LD_LIBRARY_PATH
18720
  shlibpath_overrides_runpath=yes
18721
  if test "$with_gnu_ld" = yes; then
18722
    need_lib_prefix=no
18723
  fi
18724
  need_version=yes
18725
  ;;
18726
18727
sysv4 | sysv4.3*)
18728
  version_type=linux
18729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730
  soname_spec='${libname}${release}${shared_ext}$major'
18731
  shlibpath_var=LD_LIBRARY_PATH
18732
  case $host_vendor in
18733
    sni)
18734
      shlibpath_overrides_runpath=no
18735
      need_lib_prefix=no
18736
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18737
      runpath_var=LD_RUN_PATH
18738
      ;;
18739
    siemens)
18740
      need_lib_prefix=no
18741
      ;;
18742
    motorola)
18743
      need_lib_prefix=no
18744
      need_version=no
18745
      shlibpath_overrides_runpath=no
18746
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18747
      ;;
18748
  esac
18749
  ;;
18750
18751
sysv4*MP*)
18752
  if test -d /usr/nec ;then
18753
    version_type=linux
18754
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18755
    soname_spec='$libname${shared_ext}.$major'
18756
    shlibpath_var=LD_LIBRARY_PATH
18757
  fi
18758
  ;;
18759
18760
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18761
  version_type=freebsd-elf
18762
  need_lib_prefix=no
18763
  need_version=no
18764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18765
  soname_spec='${libname}${release}${shared_ext}$major'
18766
  shlibpath_var=LD_LIBRARY_PATH
18767
  hardcode_into_libs=yes
18768
  if test "$with_gnu_ld" = yes; then
18769
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18770
    shlibpath_overrides_runpath=no
18771
  else
18772
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18773
    shlibpath_overrides_runpath=yes
18774
    case $host_os in
18775
      sco3.2v5*)
18776
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18777
	;;
18778
    esac
18779
  fi
18780
  sys_lib_dlsearch_path_spec='/usr/lib'
18781
  ;;
18782
18783
uts4*)
18784
  version_type=linux
18785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786
  soname_spec='${libname}${release}${shared_ext}$major'
18787
  shlibpath_var=LD_LIBRARY_PATH
18788
  ;;
18789
18790
*)
18791
  dynamic_linker=no
18792
  ;;
18793
esac
18794
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18795
echo "${ECHO_T}$dynamic_linker" >&6; }
18796
test "$dynamic_linker" = no && can_build_shared=no
18797
18798
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18799
  echo $ECHO_N "(cached) $ECHO_C" >&6
18800
else
18801
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18802
fi
18803
18804
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18805
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18806
  echo $ECHO_N "(cached) $ECHO_C" >&6
18807
else
18808
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18809
fi
18810
18811
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18812
18813
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18814
if test "$GCC" = yes; then
18815
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18816
fi
18817
18818
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18819
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18820
hardcode_action_GCJ=
18821
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18822
   test -n "$runpath_var_GCJ" || \
18823
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18824
18825
  # We can hardcode non-existant directories.
18826
  if test "$hardcode_direct_GCJ" != no &&
18827
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18828
     # have to relink, otherwise we might link with an installed library
18829
     # when we should be linking with a yet-to-be-installed one
18830
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18831
     test "$hardcode_minus_L_GCJ" != no; then
18832
    # Linking always hardcodes the temporary library directory.
18833
    hardcode_action_GCJ=relink
18834
  else
18835
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18836
    hardcode_action_GCJ=immediate
18837
  fi
18838
else
18839
  # We cannot hardcode anything, or else we can only hardcode existing
18840
  # directories.
18841
  hardcode_action_GCJ=unsupported
18842
fi
18843
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18844
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18845
18846
if test "$hardcode_action_GCJ" = relink; then
18847
  # Fast installation is not supported
18848
  enable_fast_install=no
18849
elif test "$shlibpath_overrides_runpath" = yes ||
18850
     test "$enable_shared" = no; then
18851
  # Fast installation is not necessary
18852
  enable_fast_install=needless
18853
fi
18854
18855
18856
# The else clause should only fire when bootstrapping the
18857
# libtool distribution, otherwise you forgot to ship ltmain.sh
18858
# with your package, and you will get complaints that there are
18859
# no rules to generate ltmain.sh.
18860
if test -f "$ltmain"; then
18861
  # See if we are running on zsh, and set the options which allow our commands through
18862
  # without removal of \ escapes.
18863
  if test -n "${ZSH_VERSION+set}" ; then
18864
    setopt NO_GLOB_SUBST
18865
  fi
18866
  # Now quote all the things that may contain metacharacters while being
18867
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18868
  # variables and quote the copies for generation of the libtool script.
18869
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18870
    SED SHELL STRIP \
18871
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18872
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18873
    deplibs_check_method reload_flag reload_cmds need_locks \
18874
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18875
    lt_cv_sys_global_symbol_to_c_name_address \
18876
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18877
    old_postinstall_cmds old_postuninstall_cmds \
18878
    compiler_GCJ \
18879
    CC_GCJ \
18880
    LD_GCJ \
18881
    lt_prog_compiler_wl_GCJ \
18882
    lt_prog_compiler_pic_GCJ \
18883
    lt_prog_compiler_static_GCJ \
18884
    lt_prog_compiler_no_builtin_flag_GCJ \
18885
    export_dynamic_flag_spec_GCJ \
18886
    thread_safe_flag_spec_GCJ \
18887
    whole_archive_flag_spec_GCJ \
18888
    enable_shared_with_static_runtimes_GCJ \
18889
    old_archive_cmds_GCJ \
18890
    old_archive_from_new_cmds_GCJ \
18891
    predep_objects_GCJ \
18892
    postdep_objects_GCJ \
18893
    predeps_GCJ \
18894
    postdeps_GCJ \
18895
    compiler_lib_search_path_GCJ \
18896
    compiler_lib_search_dirs_GCJ \
18897
    archive_cmds_GCJ \
18898
    archive_expsym_cmds_GCJ \
18899
    postinstall_cmds_GCJ \
18900
    postuninstall_cmds_GCJ \
18901
    old_archive_from_expsyms_cmds_GCJ \
18902
    allow_undefined_flag_GCJ \
18903
    no_undefined_flag_GCJ \
18904
    export_symbols_cmds_GCJ \
18905
    hardcode_libdir_flag_spec_GCJ \
18906
    hardcode_libdir_flag_spec_ld_GCJ \
18907
    hardcode_libdir_separator_GCJ \
18908
    hardcode_automatic_GCJ \
18909
    module_cmds_GCJ \
18910
    module_expsym_cmds_GCJ \
18911
    lt_cv_prog_compiler_c_o_GCJ \
18912
    fix_srcfile_path_GCJ \
18913
    exclude_expsyms_GCJ \
18914
    include_expsyms_GCJ; do
18915
18916
    case $var in
18917
    old_archive_cmds_GCJ | \
18918
    old_archive_from_new_cmds_GCJ | \
18919
    archive_cmds_GCJ | \
18920
    archive_expsym_cmds_GCJ | \
18921
    module_cmds_GCJ | \
18922
    module_expsym_cmds_GCJ | \
18923
    old_archive_from_expsyms_cmds_GCJ | \
18924
    export_symbols_cmds_GCJ | \
18925
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18926
    postinstall_cmds | postuninstall_cmds | \
18927
    old_postinstall_cmds | old_postuninstall_cmds | \
18928
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18929
      # Double-quote double-evaled strings.
18930
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18931
      ;;
18932
    *)
18933
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18934
      ;;
18935
    esac
18936
  done
18937
18938
  case $lt_echo in
18939
  *'\$0 --fallback-echo"')
18940
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18941
    ;;
18942
  esac
18943
18944
cfgfile="$ofile"
18945
18946
  cat <<__EOF__ >> "$cfgfile"
18947
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18948
18949
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18950
18951
# Shell to use when invoking shell scripts.
18952
SHELL=$lt_SHELL
18953
18954
# Whether or not to build shared libraries.
18955
build_libtool_libs=$enable_shared
18956
18957
# Whether or not to build static libraries.
18958
build_old_libs=$enable_static
18959
18960
# Whether or not to add -lc for building shared libraries.
18961
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18962
18963
# Whether or not to disallow shared libs when runtime libs are static
18964
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18965
18966
# Whether or not to optimize for fast installation.
18967
fast_install=$enable_fast_install
18968
18969
# The host system.
18970
host_alias=$host_alias
18971
host=$host
18972
host_os=$host_os
18973
18974
# The build system.
18975
build_alias=$build_alias
18976
build=$build
18977
build_os=$build_os
18978
18979
# An echo program that does not interpret backslashes.
18980
echo=$lt_echo
18981
18982
# The archiver.
18983
AR=$lt_AR
18984
AR_FLAGS=$lt_AR_FLAGS
18985
18986
# A C compiler.
18987
LTCC=$lt_LTCC
18988
18989
# LTCC compiler flags.
18990
LTCFLAGS=$lt_LTCFLAGS
18991
18992
# A language-specific compiler.
18993
CC=$lt_compiler_GCJ
18994
18995
# Is the compiler the GNU C compiler?
18996
with_gcc=$GCC_GCJ
18997
18998
# An ERE matcher.
18999
EGREP=$lt_EGREP
19000
19001
# The linker used to build libraries.
19002
LD=$lt_LD_GCJ
19003
19004
# Whether we need hard or soft links.
19005
LN_S=$lt_LN_S
19006
19007
# A BSD-compatible nm program.
19008
NM=$lt_NM
19009
19010
# A symbol stripping program
19011
STRIP=$lt_STRIP
19012
19013
# Used to examine libraries when file_magic_cmd begins "file"
19014
MAGIC_CMD=$MAGIC_CMD
19015
19016
# Used on cygwin: DLL creation program.
19017
DLLTOOL="$DLLTOOL"
19018
19019
# Used on cygwin: object dumper.
19020
OBJDUMP="$OBJDUMP"
19021
19022
# Used on cygwin: assembler.
19023
AS="$AS"
19024
19025
# The name of the directory that contains temporary libtool files.
19026
objdir=$objdir
19027
19028
# How to create reloadable object files.
19029
reload_flag=$lt_reload_flag
19030
reload_cmds=$lt_reload_cmds
19031
19032
# How to pass a linker flag through the compiler.
19033
wl=$lt_lt_prog_compiler_wl_GCJ
19034
19035
# Object file suffix (normally "o").
19036
objext="$ac_objext"
19037
19038
# Old archive suffix (normally "a").
19039
libext="$libext"
19040
19041
# Shared library suffix (normally ".so").
19042
shrext_cmds='$shrext_cmds'
19043
19044
# Executable file suffix (normally "").
19045
exeext="$exeext"
19046
19047
# Additional compiler flags for building library objects.
19048
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19049
pic_mode=$pic_mode
19050
19051
# What is the maximum length of a command?
19052
max_cmd_len=$lt_cv_sys_max_cmd_len
19053
19054
# Does compiler simultaneously support -c and -o options?
19055
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19056
19057
# Must we lock files when doing compilation?
19058
need_locks=$lt_need_locks
19059
19060
# Do we need the lib prefix for modules?
19061
need_lib_prefix=$need_lib_prefix
19062
19063
# Do we need a version for libraries?
19064
need_version=$need_version
19065
19066
# Whether dlopen is supported.
19067
dlopen_support=$enable_dlopen
19068
19069
# Whether dlopen of programs is supported.
19070
dlopen_self=$enable_dlopen_self
19071
19072
# Whether dlopen of statically linked programs is supported.
19073
dlopen_self_static=$enable_dlopen_self_static
19074
19075
# Compiler flag to prevent dynamic linking.
19076
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19077
19078
# Compiler flag to turn off builtin functions.
19079
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19080
19081
# Compiler flag to allow reflexive dlopens.
19082
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19083
19084
# Compiler flag to generate shared objects directly from archives.
19085
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19086
19087
# Compiler flag to generate thread-safe objects.
19088
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19089
19090
# Library versioning type.
19091
version_type=$version_type
19092
19093
# Format of library name prefix.
19094
libname_spec=$lt_libname_spec
19095
19096
# List of archive names.  First name is the real one, the rest are links.
19097
# The last name is the one that the linker finds with -lNAME.
19098
library_names_spec=$lt_library_names_spec
19099
19100
# The coded name of the library, if different from the real name.
19101
soname_spec=$lt_soname_spec
19102
19103
# Commands used to build and install an old-style archive.
19104
RANLIB=$lt_RANLIB
19105
old_archive_cmds=$lt_old_archive_cmds_GCJ
19106
old_postinstall_cmds=$lt_old_postinstall_cmds
19107
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19108
19109
# Create an old-style archive from a shared archive.
19110
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19111
19112
# Create a temporary old-style archive to link instead of a shared archive.
19113
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19114
19115
# Commands used to build and install a shared archive.
19116
archive_cmds=$lt_archive_cmds_GCJ
19117
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19118
postinstall_cmds=$lt_postinstall_cmds
19119
postuninstall_cmds=$lt_postuninstall_cmds
19120
19121
# Commands used to build a loadable module (assumed same as above if empty)
19122
module_cmds=$lt_module_cmds_GCJ
19123
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19124
19125
# Commands to strip libraries.
19126
old_striplib=$lt_old_striplib
19127
striplib=$lt_striplib
19128
19129
# Dependencies to place before the objects being linked to create a
19130
# shared library.
19131
predep_objects=$lt_predep_objects_GCJ
19132
19133
# Dependencies to place after the objects being linked to create a
19134
# shared library.
19135
postdep_objects=$lt_postdep_objects_GCJ
19136
19137
# Dependencies to place before the objects being linked to create a
19138
# shared library.
19139
predeps=$lt_predeps_GCJ
19140
19141
# Dependencies to place after the objects being linked to create a
19142
# shared library.
19143
postdeps=$lt_postdeps_GCJ
19144
19145
# The directories searched by this compiler when creating a shared
19146
# library
19147
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19148
19149
# The library search path used internally by the compiler when linking
19150
# a shared library.
19151
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19152
19153
# Method to check whether dependent libraries are shared objects.
19154
deplibs_check_method=$lt_deplibs_check_method
19155
19156
# Command to use when deplibs_check_method == file_magic.
19157
file_magic_cmd=$lt_file_magic_cmd
19158
19159
# Flag that allows shared libraries with undefined symbols to be built.
19160
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19161
19162
# Flag that forces no undefined symbols.
19163
no_undefined_flag=$lt_no_undefined_flag_GCJ
19164
19165
# Commands used to finish a libtool library installation in a directory.
19166
finish_cmds=$lt_finish_cmds
19167
19168
# Same as above, but a single script fragment to be evaled but not shown.
19169
finish_eval=$lt_finish_eval
19170
19171
# Take the output of nm and produce a listing of raw symbols and C names.
19172
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19173
19174
# Transform the output of nm in a proper C declaration
19175
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19176
19177
# Transform the output of nm in a C name address pair
19178
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19179
19180
# This is the shared library runtime path variable.
19181
runpath_var=$runpath_var
19182
19183
# This is the shared library path variable.
19184
shlibpath_var=$shlibpath_var
19185
19186
# Is shlibpath searched before the hard-coded library search path?
19187
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19188
19189
# How to hardcode a shared library path into an executable.
19190
hardcode_action=$hardcode_action_GCJ
19191
19192
# Whether we should hardcode library paths into libraries.
19193
hardcode_into_libs=$hardcode_into_libs
19194
19195
# Flag to hardcode \$libdir into a binary during linking.
19196
# This must work even if \$libdir does not exist.
19197
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19198
19199
# If ld is used when linking, flag to hardcode \$libdir into
19200
# a binary during linking. This must work even if \$libdir does
19201
# not exist.
19202
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19203
19204
# Whether we need a single -rpath flag with a separated argument.
19205
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19206
19207
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19208
# resulting binary.
19209
hardcode_direct=$hardcode_direct_GCJ
19210
19211
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19212
# resulting binary.
19213
hardcode_minus_L=$hardcode_minus_L_GCJ
19214
19215
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19216
# the resulting binary.
19217
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19218
19219
# Set to yes if building a shared library automatically hardcodes DIR into the library
19220
# and all subsequent libraries and executables linked against it.
19221
hardcode_automatic=$hardcode_automatic_GCJ
19222
19223
# Variables whose values should be saved in libtool wrapper scripts and
19224
# restored at relink time.
19225
variables_saved_for_relink="$variables_saved_for_relink"
19226
19227
# Whether libtool must link a program against all its dependency libraries.
19228
link_all_deplibs=$link_all_deplibs_GCJ
19229
19230
# Compile-time system search path for libraries
19231
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232
19233
# Run-time system search path for libraries
19234
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235
19236
# Fix the shell variable \$srcfile for the compiler.
19237
fix_srcfile_path=$lt_fix_srcfile_path
19238
19239
# Set to yes if exported symbols are required.
19240
always_export_symbols=$always_export_symbols_GCJ
19241
19242
# The commands to list exported symbols.
19243
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19244
19245
# The commands to extract the exported symbol list from a shared archive.
19246
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247
19248
# Symbols that should not be listed in the preloaded symbols.
19249
exclude_expsyms=$lt_exclude_expsyms_GCJ
19250
19251
# Symbols that must always be exported.
19252
include_expsyms=$lt_include_expsyms_GCJ
19253
19254
# ### END LIBTOOL TAG CONFIG: $tagname
19255
19256
__EOF__
19257
19258
19259
else
19260
  # If there is no Makefile yet, we rely on a make rule to execute
19261
  # `config.status --recheck' to rerun these tests and create the
19262
  # libtool script then.
19263
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19264
  if test -f "$ltmain_in"; then
19265
    test -f Makefile && make "$ltmain"
19266
  fi
19267
fi
19268
19269
19270
ac_ext=c
19271
ac_cpp='$CPP $CPPFLAGS'
19272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19275
19276
CC="$lt_save_CC"
19277
19278
	else
19279
	  tagname=""
19280
	fi
19281
	;;
19282
19283
      RC)
19284
19285
19286
# Source file extension for RC test sources.
19287
ac_ext=rc
19288
19289
# Object file extension for compiled RC test sources.
19290
objext=o
19291
objext_RC=$objext
19292
19293
# Code to be used in simple compile tests
19294
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19295
19296
# Code to be used in simple link tests
19297
lt_simple_link_test_code="$lt_simple_compile_test_code"
19298
19299
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19300
19301
# If no C compiler was specified, use CC.
19302
LTCC=${LTCC-"$CC"}
19303
19304
# If no C compiler flags were specified, use CFLAGS.
19305
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19306
19307
# Allow CC to be a program name with arguments.
19308
compiler=$CC
19309
19310
19311
# save warnings/boilerplate of simple test code
19312
ac_outfile=conftest.$ac_objext
19313
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19314
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19315
_lt_compiler_boilerplate=`cat conftest.err`
19316
$rm conftest*
19317
19318
ac_outfile=conftest.$ac_objext
19319
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19320
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19321
_lt_linker_boilerplate=`cat conftest.err`
19322
$rm -r conftest*
19323
19324
19325
# Allow CC to be a program name with arguments.
19326
lt_save_CC="$CC"
19327
CC=${RC-"windres"}
19328
compiler=$CC
19329
compiler_RC=$CC
19330
for cc_temp in $compiler""; do
19331
  case $cc_temp in
19332
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19333
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19334
    \-*) ;;
19335
    *) break;;
19336
  esac
19337
done
19338
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19339
19340
lt_cv_prog_compiler_c_o_RC=yes
19341
19342
# The else clause should only fire when bootstrapping the
19343
# libtool distribution, otherwise you forgot to ship ltmain.sh
19344
# with your package, and you will get complaints that there are
19345
# no rules to generate ltmain.sh.
19346
if test -f "$ltmain"; then
19347
  # See if we are running on zsh, and set the options which allow our commands through
19348
  # without removal of \ escapes.
19349
  if test -n "${ZSH_VERSION+set}" ; then
19350
    setopt NO_GLOB_SUBST
19351
  fi
19352
  # Now quote all the things that may contain metacharacters while being
19353
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19354
  # variables and quote the copies for generation of the libtool script.
19355
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19356
    SED SHELL STRIP \
19357
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19358
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19359
    deplibs_check_method reload_flag reload_cmds need_locks \
19360
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19361
    lt_cv_sys_global_symbol_to_c_name_address \
19362
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19363
    old_postinstall_cmds old_postuninstall_cmds \
19364
    compiler_RC \
19365
    CC_RC \
19366
    LD_RC \
19367
    lt_prog_compiler_wl_RC \
19368
    lt_prog_compiler_pic_RC \
19369
    lt_prog_compiler_static_RC \
19370
    lt_prog_compiler_no_builtin_flag_RC \
19371
    export_dynamic_flag_spec_RC \
19372
    thread_safe_flag_spec_RC \
19373
    whole_archive_flag_spec_RC \
19374
    enable_shared_with_static_runtimes_RC \
19375
    old_archive_cmds_RC \
19376
    old_archive_from_new_cmds_RC \
19377
    predep_objects_RC \
19378
    postdep_objects_RC \
19379
    predeps_RC \
19380
    postdeps_RC \
19381
    compiler_lib_search_path_RC \
19382
    compiler_lib_search_dirs_RC \
19383
    archive_cmds_RC \
19384
    archive_expsym_cmds_RC \
19385
    postinstall_cmds_RC \
19386
    postuninstall_cmds_RC \
19387
    old_archive_from_expsyms_cmds_RC \
19388
    allow_undefined_flag_RC \
19389
    no_undefined_flag_RC \
19390
    export_symbols_cmds_RC \
19391
    hardcode_libdir_flag_spec_RC \
19392
    hardcode_libdir_flag_spec_ld_RC \
19393
    hardcode_libdir_separator_RC \
19394
    hardcode_automatic_RC \
19395
    module_cmds_RC \
19396
    module_expsym_cmds_RC \
19397
    lt_cv_prog_compiler_c_o_RC \
19398
    fix_srcfile_path_RC \
19399
    exclude_expsyms_RC \
19400
    include_expsyms_RC; do
19401
19402
    case $var in
19403
    old_archive_cmds_RC | \
19404
    old_archive_from_new_cmds_RC | \
19405
    archive_cmds_RC | \
19406
    archive_expsym_cmds_RC | \
19407
    module_cmds_RC | \
19408
    module_expsym_cmds_RC | \
19409
    old_archive_from_expsyms_cmds_RC | \
19410
    export_symbols_cmds_RC | \
19411
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19412
    postinstall_cmds | postuninstall_cmds | \
19413
    old_postinstall_cmds | old_postuninstall_cmds | \
19414
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19415
      # Double-quote double-evaled strings.
19416
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19417
      ;;
19418
    *)
19419
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19420
      ;;
19421
    esac
19422
  done
19423
19424
  case $lt_echo in
19425
  *'\$0 --fallback-echo"')
19426
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19427
    ;;
19428
  esac
19429
19430
cfgfile="$ofile"
19431
19432
  cat <<__EOF__ >> "$cfgfile"
19433
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19434
19435
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19436
19437
# Shell to use when invoking shell scripts.
19438
SHELL=$lt_SHELL
19439
19440
# Whether or not to build shared libraries.
19441
build_libtool_libs=$enable_shared
19442
19443
# Whether or not to build static libraries.
19444
build_old_libs=$enable_static
19445
19446
# Whether or not to add -lc for building shared libraries.
19447
build_libtool_need_lc=$archive_cmds_need_lc_RC
19448
19449
# Whether or not to disallow shared libs when runtime libs are static
19450
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19451
19452
# Whether or not to optimize for fast installation.
19453
fast_install=$enable_fast_install
19454
19455
# The host system.
19456
host_alias=$host_alias
19457
host=$host
19458
host_os=$host_os
19459
19460
# The build system.
19461
build_alias=$build_alias
19462
build=$build
19463
build_os=$build_os
19464
19465
# An echo program that does not interpret backslashes.
19466
echo=$lt_echo
19467
19468
# The archiver.
19469
AR=$lt_AR
19470
AR_FLAGS=$lt_AR_FLAGS
19471
19472
# A C compiler.
19473
LTCC=$lt_LTCC
19474
19475
# LTCC compiler flags.
19476
LTCFLAGS=$lt_LTCFLAGS
19477
19478
# A language-specific compiler.
19479
CC=$lt_compiler_RC
19480
19481
# Is the compiler the GNU C compiler?
19482
with_gcc=$GCC_RC
19483
19484
# An ERE matcher.
19485
EGREP=$lt_EGREP
19486
19487
# The linker used to build libraries.
19488
LD=$lt_LD_RC
19489
19490
# Whether we need hard or soft links.
19491
LN_S=$lt_LN_S
19492
19493
# A BSD-compatible nm program.
19494
NM=$lt_NM
19495
19496
# A symbol stripping program
19497
STRIP=$lt_STRIP
19498
19499
# Used to examine libraries when file_magic_cmd begins "file"
19500
MAGIC_CMD=$MAGIC_CMD
19501
19502
# Used on cygwin: DLL creation program.
19503
DLLTOOL="$DLLTOOL"
19504
19505
# Used on cygwin: object dumper.
19506
OBJDUMP="$OBJDUMP"
19507
19508
# Used on cygwin: assembler.
19509
AS="$AS"
19510
19511
# The name of the directory that contains temporary libtool files.
19512
objdir=$objdir
19513
19514
# How to create reloadable object files.
19515
reload_flag=$lt_reload_flag
19516
reload_cmds=$lt_reload_cmds
19517
19518
# How to pass a linker flag through the compiler.
19519
wl=$lt_lt_prog_compiler_wl_RC
19520
19521
# Object file suffix (normally "o").
19522
objext="$ac_objext"
19523
19524
# Old archive suffix (normally "a").
19525
libext="$libext"
19526
19527
# Shared library suffix (normally ".so").
19528
shrext_cmds='$shrext_cmds'
19529
19530
# Executable file suffix (normally "").
19531
exeext="$exeext"
19532
19533
# Additional compiler flags for building library objects.
19534
pic_flag=$lt_lt_prog_compiler_pic_RC
19535
pic_mode=$pic_mode
19536
19537
# What is the maximum length of a command?
19538
max_cmd_len=$lt_cv_sys_max_cmd_len
19539
19540
# Does compiler simultaneously support -c and -o options?
19541
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19542
19543
# Must we lock files when doing compilation?
19544
need_locks=$lt_need_locks
19545
19546
# Do we need the lib prefix for modules?
19547
need_lib_prefix=$need_lib_prefix
19548
19549
# Do we need a version for libraries?
19550
need_version=$need_version
19551
19552
# Whether dlopen is supported.
19553
dlopen_support=$enable_dlopen
19554
19555
# Whether dlopen of programs is supported.
19556
dlopen_self=$enable_dlopen_self
19557
19558
# Whether dlopen of statically linked programs is supported.
19559
dlopen_self_static=$enable_dlopen_self_static
19560
19561
# Compiler flag to prevent dynamic linking.
19562
link_static_flag=$lt_lt_prog_compiler_static_RC
19563
19564
# Compiler flag to turn off builtin functions.
19565
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19566
19567
# Compiler flag to allow reflexive dlopens.
19568
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19569
19570
# Compiler flag to generate shared objects directly from archives.
19571
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19572
19573
# Compiler flag to generate thread-safe objects.
19574
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19575
19576
# Library versioning type.
19577
version_type=$version_type
19578
19579
# Format of library name prefix.
19580
libname_spec=$lt_libname_spec
19581
19582
# List of archive names.  First name is the real one, the rest are links.
19583
# The last name is the one that the linker finds with -lNAME.
19584
library_names_spec=$lt_library_names_spec
19585
19586
# The coded name of the library, if different from the real name.
19587
soname_spec=$lt_soname_spec
19588
19589
# Commands used to build and install an old-style archive.
19590
RANLIB=$lt_RANLIB
19591
old_archive_cmds=$lt_old_archive_cmds_RC
19592
old_postinstall_cmds=$lt_old_postinstall_cmds
19593
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19594
19595
# Create an old-style archive from a shared archive.
19596
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19597
19598
# Create a temporary old-style archive to link instead of a shared archive.
19599
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19600
19601
# Commands used to build and install a shared archive.
19602
archive_cmds=$lt_archive_cmds_RC
19603
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19604
postinstall_cmds=$lt_postinstall_cmds
19605
postuninstall_cmds=$lt_postuninstall_cmds
19606
19607
# Commands used to build a loadable module (assumed same as above if empty)
19608
module_cmds=$lt_module_cmds_RC
19609
module_expsym_cmds=$lt_module_expsym_cmds_RC
19610
19611
# Commands to strip libraries.
19612
old_striplib=$lt_old_striplib
19613
striplib=$lt_striplib
19614
19615
# Dependencies to place before the objects being linked to create a
19616
# shared library.
19617
predep_objects=$lt_predep_objects_RC
19618
19619
# Dependencies to place after the objects being linked to create a
19620
# shared library.
19621
postdep_objects=$lt_postdep_objects_RC
19622
19623
# Dependencies to place before the objects being linked to create a
19624
# shared library.
19625
predeps=$lt_predeps_RC
19626
19627
# Dependencies to place after the objects being linked to create a
19628
# shared library.
19629
postdeps=$lt_postdeps_RC
19630
19631
# The directories searched by this compiler when creating a shared
19632
# library
19633
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19634
19635
# The library search path used internally by the compiler when linking
19636
# a shared library.
19637
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19638
19639
# Method to check whether dependent libraries are shared objects.
19640
deplibs_check_method=$lt_deplibs_check_method
19641
19642
# Command to use when deplibs_check_method == file_magic.
19643
file_magic_cmd=$lt_file_magic_cmd
19644
19645
# Flag that allows shared libraries with undefined symbols to be built.
19646
allow_undefined_flag=$lt_allow_undefined_flag_RC
19647
19648
# Flag that forces no undefined symbols.
19649
no_undefined_flag=$lt_no_undefined_flag_RC
19650
19651
# Commands used to finish a libtool library installation in a directory.
19652
finish_cmds=$lt_finish_cmds
19653
19654
# Same as above, but a single script fragment to be evaled but not shown.
19655
finish_eval=$lt_finish_eval
19656
19657
# Take the output of nm and produce a listing of raw symbols and C names.
19658
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19659
19660
# Transform the output of nm in a proper C declaration
19661
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19662
19663
# Transform the output of nm in a C name address pair
19664
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19665
19666
# This is the shared library runtime path variable.
19667
runpath_var=$runpath_var
19668
19669
# This is the shared library path variable.
19670
shlibpath_var=$shlibpath_var
19671
19672
# Is shlibpath searched before the hard-coded library search path?
19673
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19674
19675
# How to hardcode a shared library path into an executable.
19676
hardcode_action=$hardcode_action_RC
19677
19678
# Whether we should hardcode library paths into libraries.
19679
hardcode_into_libs=$hardcode_into_libs
19680
19681
# Flag to hardcode \$libdir into a binary during linking.
19682
# This must work even if \$libdir does not exist.
19683
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19684
19685
# If ld is used when linking, flag to hardcode \$libdir into
19686
# a binary during linking. This must work even if \$libdir does
19687
# not exist.
19688
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19689
19690
# Whether we need a single -rpath flag with a separated argument.
19691
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19692
19693
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19694
# resulting binary.
19695
hardcode_direct=$hardcode_direct_RC
19696
19697
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19698
# resulting binary.
19699
hardcode_minus_L=$hardcode_minus_L_RC
19700
19701
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19702
# the resulting binary.
19703
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19704
19705
# Set to yes if building a shared library automatically hardcodes DIR into the library
19706
# and all subsequent libraries and executables linked against it.
19707
hardcode_automatic=$hardcode_automatic_RC
19708
19709
# Variables whose values should be saved in libtool wrapper scripts and
19710
# restored at relink time.
19711
variables_saved_for_relink="$variables_saved_for_relink"
19712
19713
# Whether libtool must link a program against all its dependency libraries.
19714
link_all_deplibs=$link_all_deplibs_RC
19715
19716
# Compile-time system search path for libraries
19717
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19718
19719
# Run-time system search path for libraries
19720
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19721
19722
# Fix the shell variable \$srcfile for the compiler.
19723
fix_srcfile_path=$lt_fix_srcfile_path
19724
19725
# Set to yes if exported symbols are required.
19726
always_export_symbols=$always_export_symbols_RC
19727
19728
# The commands to list exported symbols.
19729
export_symbols_cmds=$lt_export_symbols_cmds_RC
19730
19731
# The commands to extract the exported symbol list from a shared archive.
19732
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19733
19734
# Symbols that should not be listed in the preloaded symbols.
19735
exclude_expsyms=$lt_exclude_expsyms_RC
19736
19737
# Symbols that must always be exported.
19738
include_expsyms=$lt_include_expsyms_RC
19739
19740
# ### END LIBTOOL TAG CONFIG: $tagname
19741
19742
__EOF__
19743
19744
19745
else
19746
  # If there is no Makefile yet, we rely on a make rule to execute
19747
  # `config.status --recheck' to rerun these tests and create the
19748
  # libtool script then.
19749
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19750
  if test -f "$ltmain_in"; then
19751
    test -f Makefile && make "$ltmain"
19752
  fi
19753
fi
19754
19755
19756
ac_ext=c
19757
ac_cpp='$CPP $CPPFLAGS'
19758
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762
CC="$lt_save_CC"
19763
19764
	;;
19765
19766
      *)
19767
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19768
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19769
   { (exit 1); exit 1; }; }
19770
	;;
19771
      esac
19772
19773
      # Append the new tag name to the list of available tags.
19774
      if test -n "$tagname" ; then
19775
      available_tags="$available_tags $tagname"
19776
    fi
19777
    fi
19778
  done
19779
  IFS="$lt_save_ifs"
19780
19781
  # Now substitute the updated list of available tags.
19782
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19783
    mv "${ofile}T" "$ofile"
19784
    chmod +x "$ofile"
19785
  else
19786
    rm -f "${ofile}T"
19787
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19788
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19789
   { (exit 1); exit 1; }; }
19790
  fi
19791
fi
19792
19793
19794
19795
# This can be used to rebuild libtool when needed
19796
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19797
19798
# Always use our own libtool.
19799
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19800
19801
# Prevent multiple expansion
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
case "$am__api_version" in
19825
    1.01234)
19826
	{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19827
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19828
   { (exit 1); exit 1; }; }
19829
    ;;
19830
    *)
19831
    ;;
19832
esac
19833
19834
if test -n "0.35.0"; then
19835
    { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
19836
echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
19837
19838
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19839
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
19840
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
19841
19842
    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19843
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
19844
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
19845
	{ { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
19846
echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
19847
   { (exit 1); exit 1; }; }
19848
fi
19849
19850
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19851
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19852
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19853
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19854
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
19855
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19856
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19857
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19858
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19859
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19860
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19861
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
19862
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19863
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19864
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19865
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19866
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19867
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19868
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
# Check the gettext tools to make sure they are GNU
19891
# Extract the first word of "xgettext", so it can be a program name with args.
19892
set dummy xgettext; ac_word=$2
19893
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19895
if test "${ac_cv_path_XGETTEXT+set}" = set; then
19896
  echo $ECHO_N "(cached) $ECHO_C" >&6
19897
else
19898
  case $XGETTEXT in
19899
  [\\/]* | ?:[\\/]*)
19900
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19901
  ;;
19902
  *)
19903
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904
for as_dir in $PATH
19905
do
19906
  IFS=$as_save_IFS
19907
  test -z "$as_dir" && as_dir=.
19908
  for ac_exec_ext in '' $ac_executable_extensions; do
19909
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19910
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19912
    break 2
19913
  fi
19914
done
19915
done
19916
IFS=$as_save_IFS
19917
19918
  ;;
19919
esac
19920
fi
19921
XGETTEXT=$ac_cv_path_XGETTEXT
19922
if test -n "$XGETTEXT"; then
19923
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
19924
echo "${ECHO_T}$XGETTEXT" >&6; }
19925
else
19926
  { echo "$as_me:$LINENO: result: no" >&5
19927
echo "${ECHO_T}no" >&6; }
19928
fi
19929
19930
19931
# Extract the first word of "msgmerge", so it can be a program name with args.
19932
set dummy msgmerge; ac_word=$2
19933
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19935
if test "${ac_cv_path_MSGMERGE+set}" = set; then
19936
  echo $ECHO_N "(cached) $ECHO_C" >&6
19937
else
19938
  case $MSGMERGE in
19939
  [\\/]* | ?:[\\/]*)
19940
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19941
  ;;
19942
  *)
19943
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19944
for as_dir in $PATH
19945
do
19946
  IFS=$as_save_IFS
19947
  test -z "$as_dir" && as_dir=.
19948
  for ac_exec_ext in '' $ac_executable_extensions; do
19949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19950
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19951
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19952
    break 2
19953
  fi
19954
done
19955
done
19956
IFS=$as_save_IFS
19957
19958
  ;;
19959
esac
19960
fi
19961
MSGMERGE=$ac_cv_path_MSGMERGE
19962
if test -n "$MSGMERGE"; then
19963
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
19964
echo "${ECHO_T}$MSGMERGE" >&6; }
19965
else
19966
  { echo "$as_me:$LINENO: result: no" >&5
19967
echo "${ECHO_T}no" >&6; }
19968
fi
19969
19970
19971
# Extract the first word of "msgfmt", so it can be a program name with args.
19972
set dummy msgfmt; ac_word=$2
19973
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19975
if test "${ac_cv_path_MSGFMT+set}" = set; then
19976
  echo $ECHO_N "(cached) $ECHO_C" >&6
19977
else
19978
  case $MSGFMT in
19979
  [\\/]* | ?:[\\/]*)
19980
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19981
  ;;
19982
  *)
19983
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984
for as_dir in $PATH
19985
do
19986
  IFS=$as_save_IFS
19987
  test -z "$as_dir" && as_dir=.
19988
  for ac_exec_ext in '' $ac_executable_extensions; do
19989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19990
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19991
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19992
    break 2
19993
  fi
19994
done
19995
done
19996
IFS=$as_save_IFS
19997
19998
  ;;
19999
esac
20000
fi
20001
MSGFMT=$ac_cv_path_MSGFMT
20002
if test -n "$MSGFMT"; then
20003
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20004
echo "${ECHO_T}$MSGFMT" >&6; }
20005
else
20006
  { echo "$as_me:$LINENO: result: no" >&5
20007
echo "${ECHO_T}no" >&6; }
20008
fi
20009
20010
20011
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20012
    { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20013
echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20014
   { (exit 1); exit 1; }; }
20015
fi
20016
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20017
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20018
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20019
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20020
    { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20021
echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20022
   { (exit 1); exit 1; }; }
20023
fi
20024
20025
# Use the tools built into the package, not the ones that are installed.
20026
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
20027
20028
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
20029
20030
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
20031
20032
20033
# Extract the first word of "perl", so it can be a program name with args.
20034
set dummy perl; ac_word=$2
20035
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20037
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20038
  echo $ECHO_N "(cached) $ECHO_C" >&6
20039
else
20040
  case $INTLTOOL_PERL in
20041
  [\\/]* | ?:[\\/]*)
20042
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20043
  ;;
20044
  *)
20045
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20046
for as_dir in $PATH
20047
do
20048
  IFS=$as_save_IFS
20049
  test -z "$as_dir" && as_dir=.
20050
  for ac_exec_ext in '' $ac_executable_extensions; do
20051
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20052
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20053
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20054
    break 2
20055
  fi
20056
done
20057
done
20058
IFS=$as_save_IFS
20059
20060
  ;;
20061
esac
20062
fi
20063
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20064
if test -n "$INTLTOOL_PERL"; then
20065
  { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20066
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20067
else
20068
  { echo "$as_me:$LINENO: result: no" >&5
20069
echo "${ECHO_T}no" >&6; }
20070
fi
20071
20072
20073
if test -z "$INTLTOOL_PERL"; then
20074
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20075
echo "$as_me: error: perl not found; required for intltool" >&2;}
20076
   { (exit 1); exit 1; }; }
20077
fi
20078
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20079
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20080
echo "$as_me: error: perl 5.x required for intltool" >&2;}
20081
   { (exit 1); exit 1; }; }
20082
fi
20083
if test "x" != "xno-xml"; then
20084
   { echo "$as_me:$LINENO: checking for XML::Parser" >&5
20085
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20086
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20087
       { echo "$as_me:$LINENO: result: ok" >&5
20088
echo "${ECHO_T}ok" >&6; }
20089
   else
20090
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20091
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20092
   { (exit 1); exit 1; }; }
20093
   fi
20094
fi
20095
20096
# Substitute ALL_LINGUAS so we can use it in po/Makefile
20097
20098
20099
# Set DATADIRNAME correctly if it is not set yet
20100
# (copied from glib-gettext.m4)
20101
if test -z "$DATADIRNAME"; then
20102
  cat >conftest.$ac_ext <<_ACEOF
20103
/* confdefs.h.  */
20104
_ACEOF
20105
cat confdefs.h >>conftest.$ac_ext
20106
cat >>conftest.$ac_ext <<_ACEOF
20107
/* end confdefs.h.  */
20108
20109
int
20110
main ()
20111
{
20112
extern int _nl_msg_cat_cntr;
20113
                       return _nl_msg_cat_cntr
20114
  ;
20115
  return 0;
20116
}
20117
_ACEOF
20118
rm -f conftest.$ac_objext conftest$ac_exeext
20119
if { (ac_try="$ac_link"
20120
case "(($ac_try" in
20121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122
  *) ac_try_echo=$ac_try;;
20123
esac
20124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125
  (eval "$ac_link") 2>conftest.er1
20126
  ac_status=$?
20127
  grep -v '^ *+' conftest.er1 >conftest.err
20128
  rm -f conftest.er1
20129
  cat conftest.err >&5
20130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131
  (exit $ac_status); } && {
20132
	 test -z "$ac_c_werror_flag" ||
20133
	 test ! -s conftest.err
20134
       } && test -s conftest$ac_exeext &&
20135
       $as_test_x conftest$ac_exeext; then
20136
  DATADIRNAME=share
20137
else
20138
  echo "$as_me: failed program was:" >&5
20139
sed 's/^/| /' conftest.$ac_ext >&5
20140
20141
	case $host in
20142
    *-*-solaris*)
20143
                        { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20144
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20145
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20146
  echo $ECHO_N "(cached) $ECHO_C" >&6
20147
else
20148
  cat >conftest.$ac_ext <<_ACEOF
20149
/* confdefs.h.  */
20150
_ACEOF
20151
cat confdefs.h >>conftest.$ac_ext
20152
cat >>conftest.$ac_ext <<_ACEOF
20153
/* end confdefs.h.  */
20154
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20155
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20156
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20157
20158
/* System header to define __stub macros and hopefully few prototypes,
20159
    which can conflict with char bind_textdomain_codeset (); below.
20160
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20161
    <limits.h> exists even on freestanding compilers.  */
20162
20163
#ifdef __STDC__
20164
# include <limits.h>
20165
#else
20166
# include <assert.h>
20167
#endif
20168
20169
#undef bind_textdomain_codeset
20170
20171
/* Override any GCC internal prototype to avoid an error.
20172
   Use char because int might match the return type of a GCC
20173
   builtin and then its argument prototype would still apply.  */
20174
#ifdef __cplusplus
20175
extern "C"
20176
#endif
20177
char bind_textdomain_codeset ();
20178
/* The GNU C library defines this for functions which it implements
20179
    to always fail with ENOSYS.  Some functions are actually named
20180
    something starting with __ and the normal name is an alias.  */
20181
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20182
choke me
20183
#endif
20184
20185
int
20186
main ()
20187
{
20188
return bind_textdomain_codeset ();
20189
  ;
20190
  return 0;
20191
}
20192
_ACEOF
20193
rm -f conftest.$ac_objext conftest$ac_exeext
20194
if { (ac_try="$ac_link"
20195
case "(($ac_try" in
20196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197
  *) ac_try_echo=$ac_try;;
20198
esac
20199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200
  (eval "$ac_link") 2>conftest.er1
20201
  ac_status=$?
20202
  grep -v '^ *+' conftest.er1 >conftest.err
20203
  rm -f conftest.er1
20204
  cat conftest.err >&5
20205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206
  (exit $ac_status); } && {
20207
	 test -z "$ac_c_werror_flag" ||
20208
	 test ! -s conftest.err
20209
       } && test -s conftest$ac_exeext &&
20210
       $as_test_x conftest$ac_exeext; then
20211
  ac_cv_func_bind_textdomain_codeset=yes
20212
else
20213
  echo "$as_me: failed program was:" >&5
20214
sed 's/^/| /' conftest.$ac_ext >&5
20215
20216
	ac_cv_func_bind_textdomain_codeset=no
20217
fi
20218
20219
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20220
      conftest$ac_exeext conftest.$ac_ext
20221
fi
20222
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20223
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20224
if test $ac_cv_func_bind_textdomain_codeset = yes; then
20225
  DATADIRNAME=share
20226
else
20227
  DATADIRNAME=lib
20228
fi
20229
20230
    ;;
20231
    *)
20232
    DATADIRNAME=lib
20233
    ;;
20234
    esac
20235
fi
20236
20237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20238
      conftest$ac_exeext conftest.$ac_ext
20239
fi
20240
20241
20242
20243
20244
20245
ac_config_commands="$ac_config_commands intltool"
20246
20247
20248
20249
20250
20251
20252
for ac_header in locale.h
20253
do
20254
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20255
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20256
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20257
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20258
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259
  echo $ECHO_N "(cached) $ECHO_C" >&6
20260
fi
20261
ac_res=`eval echo '${'$as_ac_Header'}'`
20262
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20263
echo "${ECHO_T}$ac_res" >&6; }
20264
else
20265
  # Is the header compilable?
20266
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20267
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20268
cat >conftest.$ac_ext <<_ACEOF
20269
/* confdefs.h.  */
20270
_ACEOF
20271
cat confdefs.h >>conftest.$ac_ext
20272
cat >>conftest.$ac_ext <<_ACEOF
20273
/* end confdefs.h.  */
20274
$ac_includes_default
20275
#include <$ac_header>
20276
_ACEOF
20277
rm -f conftest.$ac_objext
20278
if { (ac_try="$ac_compile"
20279
case "(($ac_try" in
20280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281
  *) ac_try_echo=$ac_try;;
20282
esac
20283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284
  (eval "$ac_compile") 2>conftest.er1
20285
  ac_status=$?
20286
  grep -v '^ *+' conftest.er1 >conftest.err
20287
  rm -f conftest.er1
20288
  cat conftest.err >&5
20289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290
  (exit $ac_status); } && {
20291
	 test -z "$ac_c_werror_flag" ||
20292
	 test ! -s conftest.err
20293
       } && test -s conftest.$ac_objext; then
20294
  ac_header_compiler=yes
20295
else
20296
  echo "$as_me: failed program was:" >&5
20297
sed 's/^/| /' conftest.$ac_ext >&5
20298
20299
	ac_header_compiler=no
20300
fi
20301
20302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20304
echo "${ECHO_T}$ac_header_compiler" >&6; }
20305
20306
# Is the header present?
20307
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20308
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20309
cat >conftest.$ac_ext <<_ACEOF
20310
/* confdefs.h.  */
20311
_ACEOF
20312
cat confdefs.h >>conftest.$ac_ext
20313
cat >>conftest.$ac_ext <<_ACEOF
20314
/* end confdefs.h.  */
20315
#include <$ac_header>
20316
_ACEOF
20317
if { (ac_try="$ac_cpp conftest.$ac_ext"
20318
case "(($ac_try" in
20319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320
  *) ac_try_echo=$ac_try;;
20321
esac
20322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324
  ac_status=$?
20325
  grep -v '^ *+' conftest.er1 >conftest.err
20326
  rm -f conftest.er1
20327
  cat conftest.err >&5
20328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329
  (exit $ac_status); } >/dev/null && {
20330
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331
	 test ! -s conftest.err
20332
       }; then
20333
  ac_header_preproc=yes
20334
else
20335
  echo "$as_me: failed program was:" >&5
20336
sed 's/^/| /' conftest.$ac_ext >&5
20337
20338
  ac_header_preproc=no
20339
fi
20340
20341
rm -f conftest.err conftest.$ac_ext
20342
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20343
echo "${ECHO_T}$ac_header_preproc" >&6; }
20344
20345
# So?  What about this header?
20346
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347
  yes:no: )
20348
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20349
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20350
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20351
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20352
    ac_header_preproc=yes
20353
    ;;
20354
  no:yes:* )
20355
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20356
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20357
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20358
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20359
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20360
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20361
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20362
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20363
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20364
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20365
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20366
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20367
    ( cat <<\_ASBOX
20368
## ------------------------------------------------------ ##
20369
## Report this to Fabrice Rey (fabounet@users.berlios.de) ##
20370
## ------------------------------------------------------ ##
20371
_ASBOX
20372
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20373
    ;;
20374
esac
20375
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20376
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20377
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378
  echo $ECHO_N "(cached) $ECHO_C" >&6
20379
else
20380
  eval "$as_ac_Header=\$ac_header_preproc"
20381
fi
20382
ac_res=`eval echo '${'$as_ac_Header'}'`
20383
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20384
echo "${ECHO_T}$ac_res" >&6; }
20385
20386
fi
20387
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20388
  cat >>confdefs.h <<_ACEOF
20389
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20390
_ACEOF
20391
20392
fi
20393
20394
done
20395
20396
    if test $ac_cv_header_locale_h = yes; then
20397
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20398
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
20399
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20400
  echo $ECHO_N "(cached) $ECHO_C" >&6
20401
else
20402
  cat >conftest.$ac_ext <<_ACEOF
20403
/* confdefs.h.  */
20404
_ACEOF
20405
cat confdefs.h >>conftest.$ac_ext
20406
cat >>conftest.$ac_ext <<_ACEOF
20407
/* end confdefs.h.  */
20408
#include <locale.h>
20409
int
20410
main ()
20411
{
20412
return LC_MESSAGES
20413
  ;
20414
  return 0;
20415
}
20416
_ACEOF
20417
rm -f conftest.$ac_objext conftest$ac_exeext
20418
if { (ac_try="$ac_link"
20419
case "(($ac_try" in
20420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421
  *) ac_try_echo=$ac_try;;
20422
esac
20423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424
  (eval "$ac_link") 2>conftest.er1
20425
  ac_status=$?
20426
  grep -v '^ *+' conftest.er1 >conftest.err
20427
  rm -f conftest.er1
20428
  cat conftest.err >&5
20429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430
  (exit $ac_status); } && {
20431
	 test -z "$ac_c_werror_flag" ||
20432
	 test ! -s conftest.err
20433
       } && test -s conftest$ac_exeext &&
20434
       $as_test_x conftest$ac_exeext; then
20435
  am_cv_val_LC_MESSAGES=yes
20436
else
20437
  echo "$as_me: failed program was:" >&5
20438
sed 's/^/| /' conftest.$ac_ext >&5
20439
20440
	am_cv_val_LC_MESSAGES=no
20441
fi
20442
20443
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444
      conftest$ac_exeext conftest.$ac_ext
20445
fi
20446
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20447
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
20448
    if test $am_cv_val_LC_MESSAGES = yes; then
20449
20450
cat >>confdefs.h <<\_ACEOF
20451
#define HAVE_LC_MESSAGES 1
20452
_ACEOF
20453
20454
    fi
20455
  fi
20456
     USE_NLS=yes
20457
20458
20459
    gt_cv_have_gettext=no
20460
20461
    CATOBJEXT=NONE
20462
    XGETTEXT=:
20463
    INTLLIBS=
20464
20465
    if test "${ac_cv_header_libintl_h+set}" = set; then
20466
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
20467
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20468
if test "${ac_cv_header_libintl_h+set}" = set; then
20469
  echo $ECHO_N "(cached) $ECHO_C" >&6
20470
fi
20471
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20472
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20473
else
20474
  # Is the header compilable?
20475
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
20476
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
20477
cat >conftest.$ac_ext <<_ACEOF
20478
/* confdefs.h.  */
20479
_ACEOF
20480
cat confdefs.h >>conftest.$ac_ext
20481
cat >>conftest.$ac_ext <<_ACEOF
20482
/* end confdefs.h.  */
20483
$ac_includes_default
20484
#include <libintl.h>
20485
_ACEOF
20486
rm -f conftest.$ac_objext
20487
if { (ac_try="$ac_compile"
20488
case "(($ac_try" in
20489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490
  *) ac_try_echo=$ac_try;;
20491
esac
20492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493
  (eval "$ac_compile") 2>conftest.er1
20494
  ac_status=$?
20495
  grep -v '^ *+' conftest.er1 >conftest.err
20496
  rm -f conftest.er1
20497
  cat conftest.err >&5
20498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499
  (exit $ac_status); } && {
20500
	 test -z "$ac_c_werror_flag" ||
20501
	 test ! -s conftest.err
20502
       } && test -s conftest.$ac_objext; then
20503
  ac_header_compiler=yes
20504
else
20505
  echo "$as_me: failed program was:" >&5
20506
sed 's/^/| /' conftest.$ac_ext >&5
20507
20508
	ac_header_compiler=no
20509
fi
20510
20511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20513
echo "${ECHO_T}$ac_header_compiler" >&6; }
20514
20515
# Is the header present?
20516
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
20517
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
20518
cat >conftest.$ac_ext <<_ACEOF
20519
/* confdefs.h.  */
20520
_ACEOF
20521
cat confdefs.h >>conftest.$ac_ext
20522
cat >>conftest.$ac_ext <<_ACEOF
20523
/* end confdefs.h.  */
20524
#include <libintl.h>
20525
_ACEOF
20526
if { (ac_try="$ac_cpp conftest.$ac_ext"
20527
case "(($ac_try" in
20528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529
  *) ac_try_echo=$ac_try;;
20530
esac
20531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20533
  ac_status=$?
20534
  grep -v '^ *+' conftest.er1 >conftest.err
20535
  rm -f conftest.er1
20536
  cat conftest.err >&5
20537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538
  (exit $ac_status); } >/dev/null && {
20539
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20540
	 test ! -s conftest.err
20541
       }; then
20542
  ac_header_preproc=yes
20543
else
20544
  echo "$as_me: failed program was:" >&5
20545
sed 's/^/| /' conftest.$ac_ext >&5
20546
20547
  ac_header_preproc=no
20548
fi
20549
20550
rm -f conftest.err conftest.$ac_ext
20551
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20552
echo "${ECHO_T}$ac_header_preproc" >&6; }
20553
20554
# So?  What about this header?
20555
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20556
  yes:no: )
20557
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20558
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20559
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20560
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20561
    ac_header_preproc=yes
20562
    ;;
20563
  no:yes:* )
20564
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20565
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20566
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
20567
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
20568
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20569
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20570
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
20571
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20572
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20573
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20574
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20575
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20576
    ( cat <<\_ASBOX
20577
## ------------------------------------------------------ ##
20578
## Report this to Fabrice Rey (fabounet@users.berlios.de) ##
20579
## ------------------------------------------------------ ##
20580
_ASBOX
20581
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20582
    ;;
20583
esac
20584
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
20585
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20586
if test "${ac_cv_header_libintl_h+set}" = set; then
20587
  echo $ECHO_N "(cached) $ECHO_C" >&6
20588
else
20589
  ac_cv_header_libintl_h=$ac_header_preproc
20590
fi
20591
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20592
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20593
20594
fi
20595
if test $ac_cv_header_libintl_h = yes; then
20596
  gt_cv_func_dgettext_libintl="no"
20597
      libintl_extra_libs=""
20598
20599
      #
20600
      # First check in libc
20601
      #
20602
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20603
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
20604
if test "${gt_cv_func_ngettext_libc+set}" = set; then
20605
  echo $ECHO_N "(cached) $ECHO_C" >&6
20606
else
20607
  cat >conftest.$ac_ext <<_ACEOF
20608
/* confdefs.h.  */
20609
_ACEOF
20610
cat confdefs.h >>conftest.$ac_ext
20611
cat >>conftest.$ac_ext <<_ACEOF
20612
/* end confdefs.h.  */
20613
20614
#include <libintl.h>
20615
20616
int
20617
main ()
20618
{
20619
return !ngettext ("","", 1)
20620
  ;
20621
  return 0;
20622
}
20623
_ACEOF
20624
rm -f conftest.$ac_objext conftest$ac_exeext
20625
if { (ac_try="$ac_link"
20626
case "(($ac_try" in
20627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628
  *) ac_try_echo=$ac_try;;
20629
esac
20630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631
  (eval "$ac_link") 2>conftest.er1
20632
  ac_status=$?
20633
  grep -v '^ *+' conftest.er1 >conftest.err
20634
  rm -f conftest.er1
20635
  cat conftest.err >&5
20636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637
  (exit $ac_status); } && {
20638
	 test -z "$ac_c_werror_flag" ||
20639
	 test ! -s conftest.err
20640
       } && test -s conftest$ac_exeext &&
20641
       $as_test_x conftest$ac_exeext; then
20642
  gt_cv_func_ngettext_libc=yes
20643
else
20644
  echo "$as_me: failed program was:" >&5
20645
sed 's/^/| /' conftest.$ac_ext >&5
20646
20647
	gt_cv_func_ngettext_libc=no
20648
fi
20649
20650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20651
      conftest$ac_exeext conftest.$ac_ext
20652
20653
fi
20654
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20655
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
20656
20657
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20658
	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20659
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
20660
if test "${gt_cv_func_dgettext_libc+set}" = set; then
20661
  echo $ECHO_N "(cached) $ECHO_C" >&6
20662
else
20663
  cat >conftest.$ac_ext <<_ACEOF
20664
/* confdefs.h.  */
20665
_ACEOF
20666
cat confdefs.h >>conftest.$ac_ext
20667
cat >>conftest.$ac_ext <<_ACEOF
20668
/* end confdefs.h.  */
20669
20670
#include <libintl.h>
20671
20672
int
20673
main ()
20674
{
20675
return !dgettext ("","")
20676
  ;
20677
  return 0;
20678
}
20679
_ACEOF
20680
rm -f conftest.$ac_objext conftest$ac_exeext
20681
if { (ac_try="$ac_link"
20682
case "(($ac_try" in
20683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684
  *) ac_try_echo=$ac_try;;
20685
esac
20686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687
  (eval "$ac_link") 2>conftest.er1
20688
  ac_status=$?
20689
  grep -v '^ *+' conftest.er1 >conftest.err
20690
  rm -f conftest.er1
20691
  cat conftest.err >&5
20692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693
  (exit $ac_status); } && {
20694
	 test -z "$ac_c_werror_flag" ||
20695
	 test ! -s conftest.err
20696
       } && test -s conftest$ac_exeext &&
20697
       $as_test_x conftest$ac_exeext; then
20698
  gt_cv_func_dgettext_libc=yes
20699
else
20700
  echo "$as_me: failed program was:" >&5
20701
sed 's/^/| /' conftest.$ac_ext >&5
20702
20703
	gt_cv_func_dgettext_libc=no
20704
fi
20705
20706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20707
      conftest$ac_exeext conftest.$ac_ext
20708
20709
fi
20710
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20711
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
20712
      fi
20713
20714
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20715
20716
for ac_func in bind_textdomain_codeset
20717
do
20718
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20719
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20720
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20721
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20722
  echo $ECHO_N "(cached) $ECHO_C" >&6
20723
else
20724
  cat >conftest.$ac_ext <<_ACEOF
20725
/* confdefs.h.  */
20726
_ACEOF
20727
cat confdefs.h >>conftest.$ac_ext
20728
cat >>conftest.$ac_ext <<_ACEOF
20729
/* end confdefs.h.  */
20730
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20731
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20732
#define $ac_func innocuous_$ac_func
20733
20734
/* System header to define __stub macros and hopefully few prototypes,
20735
    which can conflict with char $ac_func (); below.
20736
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737
    <limits.h> exists even on freestanding compilers.  */
20738
20739
#ifdef __STDC__
20740
# include <limits.h>
20741
#else
20742
# include <assert.h>
20743
#endif
20744
20745
#undef $ac_func
20746
20747
/* Override any GCC internal prototype to avoid an error.
20748
   Use char because int might match the return type of a GCC
20749
   builtin and then its argument prototype would still apply.  */
20750
#ifdef __cplusplus
20751
extern "C"
20752
#endif
20753
char $ac_func ();
20754
/* The GNU C library defines this for functions which it implements
20755
    to always fail with ENOSYS.  Some functions are actually named
20756
    something starting with __ and the normal name is an alias.  */
20757
#if defined __stub_$ac_func || defined __stub___$ac_func
20758
choke me
20759
#endif
20760
20761
int
20762
main ()
20763
{
20764
return $ac_func ();
20765
  ;
20766
  return 0;
20767
}
20768
_ACEOF
20769
rm -f conftest.$ac_objext conftest$ac_exeext
20770
if { (ac_try="$ac_link"
20771
case "(($ac_try" in
20772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773
  *) ac_try_echo=$ac_try;;
20774
esac
20775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776
  (eval "$ac_link") 2>conftest.er1
20777
  ac_status=$?
20778
  grep -v '^ *+' conftest.er1 >conftest.err
20779
  rm -f conftest.er1
20780
  cat conftest.err >&5
20781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782
  (exit $ac_status); } && {
20783
	 test -z "$ac_c_werror_flag" ||
20784
	 test ! -s conftest.err
20785
       } && test -s conftest$ac_exeext &&
20786
       $as_test_x conftest$ac_exeext; then
20787
  eval "$as_ac_var=yes"
20788
else
20789
  echo "$as_me: failed program was:" >&5
20790
sed 's/^/| /' conftest.$ac_ext >&5
20791
20792
	eval "$as_ac_var=no"
20793
fi
20794
20795
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796
      conftest$ac_exeext conftest.$ac_ext
20797
fi
20798
ac_res=`eval echo '${'$as_ac_var'}'`
20799
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20800
echo "${ECHO_T}$ac_res" >&6; }
20801
if test `eval echo '${'$as_ac_var'}'` = yes; then
20802
  cat >>confdefs.h <<_ACEOF
20803
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20804
_ACEOF
20805
20806
fi
20807
done
20808
20809
      fi
20810
20811
      #
20812
      # If we don't have everything we want, check in libintl
20813
      #
20814
      if test "$gt_cv_func_dgettext_libc" != "yes" \
20815
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
20816
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20817
20818
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20819
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
20820
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20821
  echo $ECHO_N "(cached) $ECHO_C" >&6
20822
else
20823
  ac_check_lib_save_LIBS=$LIBS
20824
LIBS="-lintl  $LIBS"
20825
cat >conftest.$ac_ext <<_ACEOF
20826
/* confdefs.h.  */
20827
_ACEOF
20828
cat confdefs.h >>conftest.$ac_ext
20829
cat >>conftest.$ac_ext <<_ACEOF
20830
/* end confdefs.h.  */
20831
20832
/* Override any GCC internal prototype to avoid an error.
20833
   Use char because int might match the return type of a GCC
20834
   builtin and then its argument prototype would still apply.  */
20835
#ifdef __cplusplus
20836
extern "C"
20837
#endif
20838
char bindtextdomain ();
20839
int
20840
main ()
20841
{
20842
return bindtextdomain ();
20843
  ;
20844
  return 0;
20845
}
20846
_ACEOF
20847
rm -f conftest.$ac_objext conftest$ac_exeext
20848
if { (ac_try="$ac_link"
20849
case "(($ac_try" in
20850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851
  *) ac_try_echo=$ac_try;;
20852
esac
20853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854
  (eval "$ac_link") 2>conftest.er1
20855
  ac_status=$?
20856
  grep -v '^ *+' conftest.er1 >conftest.err
20857
  rm -f conftest.er1
20858
  cat conftest.err >&5
20859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860
  (exit $ac_status); } && {
20861
	 test -z "$ac_c_werror_flag" ||
20862
	 test ! -s conftest.err
20863
       } && test -s conftest$ac_exeext &&
20864
       $as_test_x conftest$ac_exeext; then
20865
  ac_cv_lib_intl_bindtextdomain=yes
20866
else
20867
  echo "$as_me: failed program was:" >&5
20868
sed 's/^/| /' conftest.$ac_ext >&5
20869
20870
	ac_cv_lib_intl_bindtextdomain=no
20871
fi
20872
20873
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874
      conftest$ac_exeext conftest.$ac_ext
20875
LIBS=$ac_check_lib_save_LIBS
20876
fi
20877
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20878
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
20879
if test $ac_cv_lib_intl_bindtextdomain = yes; then
20880
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20881
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
20882
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20883
  echo $ECHO_N "(cached) $ECHO_C" >&6
20884
else
20885
  ac_check_lib_save_LIBS=$LIBS
20886
LIBS="-lintl  $LIBS"
20887
cat >conftest.$ac_ext <<_ACEOF
20888
/* confdefs.h.  */
20889
_ACEOF
20890
cat confdefs.h >>conftest.$ac_ext
20891
cat >>conftest.$ac_ext <<_ACEOF
20892
/* end confdefs.h.  */
20893
20894
/* Override any GCC internal prototype to avoid an error.
20895
   Use char because int might match the return type of a GCC
20896
   builtin and then its argument prototype would still apply.  */
20897
#ifdef __cplusplus
20898
extern "C"
20899
#endif
20900
char ngettext ();
20901
int
20902
main ()
20903
{
20904
return ngettext ();
20905
  ;
20906
  return 0;
20907
}
20908
_ACEOF
20909
rm -f conftest.$ac_objext conftest$ac_exeext
20910
if { (ac_try="$ac_link"
20911
case "(($ac_try" in
20912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913
  *) ac_try_echo=$ac_try;;
20914
esac
20915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916
  (eval "$ac_link") 2>conftest.er1
20917
  ac_status=$?
20918
  grep -v '^ *+' conftest.er1 >conftest.err
20919
  rm -f conftest.er1
20920
  cat conftest.err >&5
20921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922
  (exit $ac_status); } && {
20923
	 test -z "$ac_c_werror_flag" ||
20924
	 test ! -s conftest.err
20925
       } && test -s conftest$ac_exeext &&
20926
       $as_test_x conftest$ac_exeext; then
20927
  ac_cv_lib_intl_ngettext=yes
20928
else
20929
  echo "$as_me: failed program was:" >&5
20930
sed 's/^/| /' conftest.$ac_ext >&5
20931
20932
	ac_cv_lib_intl_ngettext=no
20933
fi
20934
20935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20936
      conftest$ac_exeext conftest.$ac_ext
20937
LIBS=$ac_check_lib_save_LIBS
20938
fi
20939
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20940
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
20941
if test $ac_cv_lib_intl_ngettext = yes; then
20942
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20943
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20944
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20945
  echo $ECHO_N "(cached) $ECHO_C" >&6
20946
else
20947
  ac_check_lib_save_LIBS=$LIBS
20948
LIBS="-lintl  $LIBS"
20949
cat >conftest.$ac_ext <<_ACEOF
20950
/* confdefs.h.  */
20951
_ACEOF
20952
cat confdefs.h >>conftest.$ac_ext
20953
cat >>conftest.$ac_ext <<_ACEOF
20954
/* end confdefs.h.  */
20955
20956
/* Override any GCC internal prototype to avoid an error.
20957
   Use char because int might match the return type of a GCC
20958
   builtin and then its argument prototype would still apply.  */
20959
#ifdef __cplusplus
20960
extern "C"
20961
#endif
20962
char dgettext ();
20963
int
20964
main ()
20965
{
20966
return dgettext ();
20967
  ;
20968
  return 0;
20969
}
20970
_ACEOF
20971
rm -f conftest.$ac_objext conftest$ac_exeext
20972
if { (ac_try="$ac_link"
20973
case "(($ac_try" in
20974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975
  *) ac_try_echo=$ac_try;;
20976
esac
20977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978
  (eval "$ac_link") 2>conftest.er1
20979
  ac_status=$?
20980
  grep -v '^ *+' conftest.er1 >conftest.err
20981
  rm -f conftest.er1
20982
  cat conftest.err >&5
20983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984
  (exit $ac_status); } && {
20985
	 test -z "$ac_c_werror_flag" ||
20986
	 test ! -s conftest.err
20987
       } && test -s conftest$ac_exeext &&
20988
       $as_test_x conftest$ac_exeext; then
20989
  ac_cv_lib_intl_dgettext=yes
20990
else
20991
  echo "$as_me: failed program was:" >&5
20992
sed 's/^/| /' conftest.$ac_ext >&5
20993
20994
	ac_cv_lib_intl_dgettext=no
20995
fi
20996
20997
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20998
      conftest$ac_exeext conftest.$ac_ext
20999
LIBS=$ac_check_lib_save_LIBS
21000
fi
21001
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21002
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21003
if test $ac_cv_lib_intl_dgettext = yes; then
21004
  gt_cv_func_dgettext_libintl=yes
21005
fi
21006
21007
fi
21008
21009
fi
21010
21011
21012
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21013
	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21014
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
21015
	  { echo "$as_me:$LINENO: result: " >&5
21016
echo "${ECHO_T}" >&6; }
21017
  	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21018
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21019
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21020
  echo $ECHO_N "(cached) $ECHO_C" >&6
21021
else
21022
  ac_check_lib_save_LIBS=$LIBS
21023
LIBS="-lintl -liconv $LIBS"
21024
cat >conftest.$ac_ext <<_ACEOF
21025
/* confdefs.h.  */
21026
_ACEOF
21027
cat confdefs.h >>conftest.$ac_ext
21028
cat >>conftest.$ac_ext <<_ACEOF
21029
/* end confdefs.h.  */
21030
21031
/* Override any GCC internal prototype to avoid an error.
21032
   Use char because int might match the return type of a GCC
21033
   builtin and then its argument prototype would still apply.  */
21034
#ifdef __cplusplus
21035
extern "C"
21036
#endif
21037
char ngettext ();
21038
int
21039
main ()
21040
{
21041
return ngettext ();
21042
  ;
21043
  return 0;
21044
}
21045
_ACEOF
21046
rm -f conftest.$ac_objext conftest$ac_exeext
21047
if { (ac_try="$ac_link"
21048
case "(($ac_try" in
21049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050
  *) ac_try_echo=$ac_try;;
21051
esac
21052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053
  (eval "$ac_link") 2>conftest.er1
21054
  ac_status=$?
21055
  grep -v '^ *+' conftest.er1 >conftest.err
21056
  rm -f conftest.er1
21057
  cat conftest.err >&5
21058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059
  (exit $ac_status); } && {
21060
	 test -z "$ac_c_werror_flag" ||
21061
	 test ! -s conftest.err
21062
       } && test -s conftest$ac_exeext &&
21063
       $as_test_x conftest$ac_exeext; then
21064
  ac_cv_lib_intl_ngettext=yes
21065
else
21066
  echo "$as_me: failed program was:" >&5
21067
sed 's/^/| /' conftest.$ac_ext >&5
21068
21069
	ac_cv_lib_intl_ngettext=no
21070
fi
21071
21072
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21073
      conftest$ac_exeext conftest.$ac_ext
21074
LIBS=$ac_check_lib_save_LIBS
21075
fi
21076
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21077
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21078
if test $ac_cv_lib_intl_ngettext = yes; then
21079
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21080
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
21081
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21082
  echo $ECHO_N "(cached) $ECHO_C" >&6
21083
else
21084
  ac_check_lib_save_LIBS=$LIBS
21085
LIBS="-lintl -liconv $LIBS"
21086
cat >conftest.$ac_ext <<_ACEOF
21087
/* confdefs.h.  */
21088
_ACEOF
21089
cat confdefs.h >>conftest.$ac_ext
21090
cat >>conftest.$ac_ext <<_ACEOF
21091
/* end confdefs.h.  */
21092
21093
/* Override any GCC internal prototype to avoid an error.
21094
   Use char because int might match the return type of a GCC
21095
   builtin and then its argument prototype would still apply.  */
21096
#ifdef __cplusplus
21097
extern "C"
21098
#endif
21099
char dcgettext ();
21100
int
21101
main ()
21102
{
21103
return dcgettext ();
21104
  ;
21105
  return 0;
21106
}
21107
_ACEOF
21108
rm -f conftest.$ac_objext conftest$ac_exeext
21109
if { (ac_try="$ac_link"
21110
case "(($ac_try" in
21111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112
  *) ac_try_echo=$ac_try;;
21113
esac
21114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115
  (eval "$ac_link") 2>conftest.er1
21116
  ac_status=$?
21117
  grep -v '^ *+' conftest.er1 >conftest.err
21118
  rm -f conftest.er1
21119
  cat conftest.err >&5
21120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121
  (exit $ac_status); } && {
21122
	 test -z "$ac_c_werror_flag" ||
21123
	 test ! -s conftest.err
21124
       } && test -s conftest$ac_exeext &&
21125
       $as_test_x conftest$ac_exeext; then
21126
  ac_cv_lib_intl_dcgettext=yes
21127
else
21128
  echo "$as_me: failed program was:" >&5
21129
sed 's/^/| /' conftest.$ac_ext >&5
21130
21131
	ac_cv_lib_intl_dcgettext=no
21132
fi
21133
21134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21135
      conftest$ac_exeext conftest.$ac_ext
21136
LIBS=$ac_check_lib_save_LIBS
21137
fi
21138
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21139
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
21140
if test $ac_cv_lib_intl_dcgettext = yes; then
21141
  gt_cv_func_dgettext_libintl=yes
21142
			libintl_extra_libs=-liconv
21143
else
21144
  :
21145
fi
21146
21147
else
21148
  :
21149
fi
21150
21151
        fi
21152
21153
        #
21154
        # If we found libintl, then check in it for bind_textdomain_codeset();
21155
        # we'll prefer libc if neither have bind_textdomain_codeset(),
21156
        # and both have dgettext and ngettext
21157
        #
21158
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21159
          glib_save_LIBS="$LIBS"
21160
          LIBS="$LIBS -lintl $libintl_extra_libs"
21161
          unset ac_cv_func_bind_textdomain_codeset
21162
21163
for ac_func in bind_textdomain_codeset
21164
do
21165
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21166
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21167
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21168
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21169
  echo $ECHO_N "(cached) $ECHO_C" >&6
21170
else
21171
  cat >conftest.$ac_ext <<_ACEOF
21172
/* confdefs.h.  */
21173
_ACEOF
21174
cat confdefs.h >>conftest.$ac_ext
21175
cat >>conftest.$ac_ext <<_ACEOF
21176
/* end confdefs.h.  */
21177
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21178
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21179
#define $ac_func innocuous_$ac_func
21180
21181
/* System header to define __stub macros and hopefully few prototypes,
21182
    which can conflict with char $ac_func (); below.
21183
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21184
    <limits.h> exists even on freestanding compilers.  */
21185
21186
#ifdef __STDC__
21187
# include <limits.h>
21188
#else
21189
# include <assert.h>
21190
#endif
21191
21192
#undef $ac_func
21193
21194
/* Override any GCC internal prototype to avoid an error.
21195
   Use char because int might match the return type of a GCC
21196
   builtin and then its argument prototype would still apply.  */
21197
#ifdef __cplusplus
21198
extern "C"
21199
#endif
21200
char $ac_func ();
21201
/* The GNU C library defines this for functions which it implements
21202
    to always fail with ENOSYS.  Some functions are actually named
21203
    something starting with __ and the normal name is an alias.  */
21204
#if defined __stub_$ac_func || defined __stub___$ac_func
21205
choke me
21206
#endif
21207
21208
int
21209
main ()
21210
{
21211
return $ac_func ();
21212
  ;
21213
  return 0;
21214
}
21215
_ACEOF
21216
rm -f conftest.$ac_objext conftest$ac_exeext
21217
if { (ac_try="$ac_link"
21218
case "(($ac_try" in
21219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220
  *) ac_try_echo=$ac_try;;
21221
esac
21222
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223
  (eval "$ac_link") 2>conftest.er1
21224
  ac_status=$?
21225
  grep -v '^ *+' conftest.er1 >conftest.err
21226
  rm -f conftest.er1
21227
  cat conftest.err >&5
21228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229
  (exit $ac_status); } && {
21230
	 test -z "$ac_c_werror_flag" ||
21231
	 test ! -s conftest.err
21232
       } && test -s conftest$ac_exeext &&
21233
       $as_test_x conftest$ac_exeext; then
21234
  eval "$as_ac_var=yes"
21235
else
21236
  echo "$as_me: failed program was:" >&5
21237
sed 's/^/| /' conftest.$ac_ext >&5
21238
21239
	eval "$as_ac_var=no"
21240
fi
21241
21242
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21243
      conftest$ac_exeext conftest.$ac_ext
21244
fi
21245
ac_res=`eval echo '${'$as_ac_var'}'`
21246
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21247
echo "${ECHO_T}$ac_res" >&6; }
21248
if test `eval echo '${'$as_ac_var'}'` = yes; then
21249
  cat >>confdefs.h <<_ACEOF
21250
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21251
_ACEOF
21252
21253
fi
21254
done
21255
21256
          LIBS="$glib_save_LIBS"
21257
21258
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21259
            gt_cv_func_dgettext_libc=no
21260
          else
21261
            if test "$gt_cv_func_dgettext_libc" = "yes" \
21262
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
21263
              gt_cv_func_dgettext_libintl=no
21264
            fi
21265
          fi
21266
        fi
21267
      fi
21268
21269
      if test "$gt_cv_func_dgettext_libc" = "yes" \
21270
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
21271
        gt_cv_have_gettext=yes
21272
      fi
21273
21274
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21275
        INTLLIBS="-lintl $libintl_extra_libs"
21276
      fi
21277
21278
      if test "$gt_cv_have_gettext" = "yes"; then
21279
21280
cat >>confdefs.h <<\_ACEOF
21281
#define HAVE_GETTEXT 1
21282
_ACEOF
21283
21284
	# Extract the first word of "msgfmt", so it can be a program name with args.
21285
set dummy msgfmt; ac_word=$2
21286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21288
if test "${ac_cv_path_MSGFMT+set}" = set; then
21289
  echo $ECHO_N "(cached) $ECHO_C" >&6
21290
else
21291
  case "$MSGFMT" in
21292
  /*)
21293
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21294
  ;;
21295
  *)
21296
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21297
  for ac_dir in $PATH; do
21298
    test -z "$ac_dir" && ac_dir=.
21299
    if test -f $ac_dir/$ac_word; then
21300
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21301
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21302
	break
21303
      fi
21304
    fi
21305
  done
21306
  IFS="$ac_save_ifs"
21307
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21308
  ;;
21309
esac
21310
fi
21311
MSGFMT="$ac_cv_path_MSGFMT"
21312
if test "$MSGFMT" != "no"; then
21313
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21314
echo "${ECHO_T}$MSGFMT" >&6; }
21315
else
21316
  { echo "$as_me:$LINENO: result: no" >&5
21317
echo "${ECHO_T}no" >&6; }
21318
fi
21319
	if test "$MSGFMT" != "no"; then
21320
          glib_save_LIBS="$LIBS"
21321
          LIBS="$LIBS $INTLLIBS"
21322
21323
for ac_func in dcgettext
21324
do
21325
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21326
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21327
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21328
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21329
  echo $ECHO_N "(cached) $ECHO_C" >&6
21330
else
21331
  cat >conftest.$ac_ext <<_ACEOF
21332
/* confdefs.h.  */
21333
_ACEOF
21334
cat confdefs.h >>conftest.$ac_ext
21335
cat >>conftest.$ac_ext <<_ACEOF
21336
/* end confdefs.h.  */
21337
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21338
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21339
#define $ac_func innocuous_$ac_func
21340
21341
/* System header to define __stub macros and hopefully few prototypes,
21342
    which can conflict with char $ac_func (); below.
21343
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344
    <limits.h> exists even on freestanding compilers.  */
21345
21346
#ifdef __STDC__
21347
# include <limits.h>
21348
#else
21349
# include <assert.h>
21350
#endif
21351
21352
#undef $ac_func
21353
21354
/* Override any GCC internal prototype to avoid an error.
21355
   Use char because int might match the return type of a GCC
21356
   builtin and then its argument prototype would still apply.  */
21357
#ifdef __cplusplus
21358
extern "C"
21359
#endif
21360
char $ac_func ();
21361
/* The GNU C library defines this for functions which it implements
21362
    to always fail with ENOSYS.  Some functions are actually named
21363
    something starting with __ and the normal name is an alias.  */
21364
#if defined __stub_$ac_func || defined __stub___$ac_func
21365
choke me
21366
#endif
21367
21368
int
21369
main ()
21370
{
21371
return $ac_func ();
21372
  ;
21373
  return 0;
21374
}
21375
_ACEOF
21376
rm -f conftest.$ac_objext conftest$ac_exeext
21377
if { (ac_try="$ac_link"
21378
case "(($ac_try" in
21379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380
  *) ac_try_echo=$ac_try;;
21381
esac
21382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383
  (eval "$ac_link") 2>conftest.er1
21384
  ac_status=$?
21385
  grep -v '^ *+' conftest.er1 >conftest.err
21386
  rm -f conftest.er1
21387
  cat conftest.err >&5
21388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389
  (exit $ac_status); } && {
21390
	 test -z "$ac_c_werror_flag" ||
21391
	 test ! -s conftest.err
21392
       } && test -s conftest$ac_exeext &&
21393
       $as_test_x conftest$ac_exeext; then
21394
  eval "$as_ac_var=yes"
21395
else
21396
  echo "$as_me: failed program was:" >&5
21397
sed 's/^/| /' conftest.$ac_ext >&5
21398
21399
	eval "$as_ac_var=no"
21400
fi
21401
21402
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403
      conftest$ac_exeext conftest.$ac_ext
21404
fi
21405
ac_res=`eval echo '${'$as_ac_var'}'`
21406
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21407
echo "${ECHO_T}$ac_res" >&6; }
21408
if test `eval echo '${'$as_ac_var'}'` = yes; then
21409
  cat >>confdefs.h <<_ACEOF
21410
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21411
_ACEOF
21412
21413
fi
21414
done
21415
21416
	  MSGFMT_OPTS=
21417
	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
21418
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
21419
	  cat >conftest.foo <<_ACEOF
21420
21421
msgid ""
21422
msgstr ""
21423
"Content-Type: text/plain; charset=UTF-8\n"
21424
"Project-Id-Version: test 1.0\n"
21425
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
21426
"Last-Translator: test <foo@bar.xx>\n"
21427
"Language-Team: C <LL@li.org>\n"
21428
"MIME-Version: 1.0\n"
21429
"Content-Transfer-Encoding: 8bit\n"
21430
21431
_ACEOF
21432
if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
21433
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
21434
  ac_status=$?
21435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436
  (exit $ac_status); }; then
21437
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
21438
echo "${ECHO_T}yes" >&6; }
21439
else { echo "$as_me:$LINENO: result: no" >&5
21440
echo "${ECHO_T}no" >&6; }
21441
echo "$as_me: failed input was:" >&5
21442
sed 's/^/| /' conftest.foo >&5
21443
fi
21444
21445
	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
21446
set dummy gmsgfmt; ac_word=$2
21447
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21448
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21449
if test "${ac_cv_path_GMSGFMT+set}" = set; then
21450
  echo $ECHO_N "(cached) $ECHO_C" >&6
21451
else
21452
  case $GMSGFMT in
21453
  [\\/]* | ?:[\\/]*)
21454
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21455
  ;;
21456
  *)
21457
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458
for as_dir in $PATH
21459
do
21460
  IFS=$as_save_IFS
21461
  test -z "$as_dir" && as_dir=.
21462
  for ac_exec_ext in '' $ac_executable_extensions; do
21463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21464
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21465
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21466
    break 2
21467
  fi
21468
done
21469
done
21470
IFS=$as_save_IFS
21471
21472
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21473
  ;;
21474
esac
21475
fi
21476
GMSGFMT=$ac_cv_path_GMSGFMT
21477
if test -n "$GMSGFMT"; then
21478
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21479
echo "${ECHO_T}$GMSGFMT" >&6; }
21480
else
21481
  { echo "$as_me:$LINENO: result: no" >&5
21482
echo "${ECHO_T}no" >&6; }
21483
fi
21484
21485
21486
	  # Extract the first word of "xgettext", so it can be a program name with args.
21487
set dummy xgettext; ac_word=$2
21488
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21489
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21490
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21491
  echo $ECHO_N "(cached) $ECHO_C" >&6
21492
else
21493
  case "$XGETTEXT" in
21494
  /*)
21495
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21496
  ;;
21497
  *)
21498
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21499
  for ac_dir in $PATH; do
21500
    test -z "$ac_dir" && ac_dir=.
21501
    if test -f $ac_dir/$ac_word; then
21502
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21503
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21504
	break
21505
      fi
21506
    fi
21507
  done
21508
  IFS="$ac_save_ifs"
21509
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21510
  ;;
21511
esac
21512
fi
21513
XGETTEXT="$ac_cv_path_XGETTEXT"
21514
if test "$XGETTEXT" != ":"; then
21515
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21516
echo "${ECHO_T}$XGETTEXT" >&6; }
21517
else
21518
  { echo "$as_me:$LINENO: result: no" >&5
21519
echo "${ECHO_T}no" >&6; }
21520
fi
21521
21522
	  cat >conftest.$ac_ext <<_ACEOF
21523
/* confdefs.h.  */
21524
_ACEOF
21525
cat confdefs.h >>conftest.$ac_ext
21526
cat >>conftest.$ac_ext <<_ACEOF
21527
/* end confdefs.h.  */
21528
21529
int
21530
main ()
21531
{
21532
extern int _nl_msg_cat_cntr;
21533
			 return _nl_msg_cat_cntr
21534
  ;
21535
  return 0;
21536
}
21537
_ACEOF
21538
rm -f conftest.$ac_objext conftest$ac_exeext
21539
if { (ac_try="$ac_link"
21540
case "(($ac_try" in
21541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542
  *) ac_try_echo=$ac_try;;
21543
esac
21544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545
  (eval "$ac_link") 2>conftest.er1
21546
  ac_status=$?
21547
  grep -v '^ *+' conftest.er1 >conftest.err
21548
  rm -f conftest.er1
21549
  cat conftest.err >&5
21550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551
  (exit $ac_status); } && {
21552
	 test -z "$ac_c_werror_flag" ||
21553
	 test ! -s conftest.err
21554
       } && test -s conftest$ac_exeext &&
21555
       $as_test_x conftest$ac_exeext; then
21556
  CATOBJEXT=.gmo
21557
             DATADIRNAME=share
21558
else
21559
  echo "$as_me: failed program was:" >&5
21560
sed 's/^/| /' conftest.$ac_ext >&5
21561
21562
	case $host in
21563
	    *-*-solaris*)
21564
	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21565
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
21566
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21567
  echo $ECHO_N "(cached) $ECHO_C" >&6
21568
else
21569
  cat >conftest.$ac_ext <<_ACEOF
21570
/* confdefs.h.  */
21571
_ACEOF
21572
cat confdefs.h >>conftest.$ac_ext
21573
cat >>conftest.$ac_ext <<_ACEOF
21574
/* end confdefs.h.  */
21575
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21576
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21577
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21578
21579
/* System header to define __stub macros and hopefully few prototypes,
21580
    which can conflict with char bind_textdomain_codeset (); below.
21581
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582
    <limits.h> exists even on freestanding compilers.  */
21583
21584
#ifdef __STDC__
21585
# include <limits.h>
21586
#else
21587
# include <assert.h>
21588
#endif
21589
21590
#undef bind_textdomain_codeset
21591
21592
/* Override any GCC internal prototype to avoid an error.
21593
   Use char because int might match the return type of a GCC
21594
   builtin and then its argument prototype would still apply.  */
21595
#ifdef __cplusplus
21596
extern "C"
21597
#endif
21598
char bind_textdomain_codeset ();
21599
/* The GNU C library defines this for functions which it implements
21600
    to always fail with ENOSYS.  Some functions are actually named
21601
    something starting with __ and the normal name is an alias.  */
21602
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
21603
choke me
21604
#endif
21605
21606
int
21607
main ()
21608
{
21609
return bind_textdomain_codeset ();
21610
  ;
21611
  return 0;
21612
}
21613
_ACEOF
21614
rm -f conftest.$ac_objext conftest$ac_exeext
21615
if { (ac_try="$ac_link"
21616
case "(($ac_try" in
21617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618
  *) ac_try_echo=$ac_try;;
21619
esac
21620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621
  (eval "$ac_link") 2>conftest.er1
21622
  ac_status=$?
21623
  grep -v '^ *+' conftest.er1 >conftest.err
21624
  rm -f conftest.er1
21625
  cat conftest.err >&5
21626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627
  (exit $ac_status); } && {
21628
	 test -z "$ac_c_werror_flag" ||
21629
	 test ! -s conftest.err
21630
       } && test -s conftest$ac_exeext &&
21631
       $as_test_x conftest$ac_exeext; then
21632
  ac_cv_func_bind_textdomain_codeset=yes
21633
else
21634
  echo "$as_me: failed program was:" >&5
21635
sed 's/^/| /' conftest.$ac_ext >&5
21636
21637
	ac_cv_func_bind_textdomain_codeset=no
21638
fi
21639
21640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21641
      conftest$ac_exeext conftest.$ac_ext
21642
fi
21643
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21644
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
21645
if test $ac_cv_func_bind_textdomain_codeset = yes; then
21646
  CATOBJEXT=.gmo
21647
               DATADIRNAME=share
21648
else
21649
  CATOBJEXT=.mo
21650
               DATADIRNAME=lib
21651
fi
21652
21653
	    ;;
21654
	    *)
21655
	    CATOBJEXT=.mo
21656
            DATADIRNAME=lib
21657
	    ;;
21658
	    esac
21659
fi
21660
21661
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662
      conftest$ac_exeext conftest.$ac_ext
21663
          LIBS="$glib_save_LIBS"
21664
	  INSTOBJEXT=.mo
21665
	else
21666
	  gt_cv_have_gettext=no
21667
	fi
21668
      fi
21669
21670
fi
21671
21672
21673
21674
    if test "$gt_cv_have_gettext" = "yes" ; then
21675
21676
cat >>confdefs.h <<\_ACEOF
21677
#define ENABLE_NLS 1
21678
_ACEOF
21679
21680
    fi
21681
21682
        if test "$XGETTEXT" != ":"; then
21683
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21684
        : ;
21685
      else
21686
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21687
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
21688
        XGETTEXT=":"
21689
      fi
21690
    fi
21691
21692
    # We need to process the po/ directory.
21693
    POSUB=po
21694
21695
    ac_config_commands="$ac_config_commands default-1"
21696
21697
21698
                for lang in $ALL_LINGUAS; do
21699
      GMOFILES="$GMOFILES $lang.gmo"
21700
      POFILES="$POFILES $lang.po"
21701
    done
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
   if test "$gt_cv_have_gettext" = "yes"; then
21716
     if test "x$ALL_LINGUAS" = "x"; then
21717
       LINGUAS=
21718
     else
21719
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21720
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
21721
       NEW_LINGUAS=
21722
       for presentlang in $ALL_LINGUAS; do
21723
         useit=no
21724
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21725
           desiredlanguages="$LINGUAS"
21726
         else
21727
           desiredlanguages="$ALL_LINGUAS"
21728
         fi
21729
         for desiredlang in $desiredlanguages; do
21730
 	   # Use the presentlang catalog if desiredlang is
21731
           #   a. equal to presentlang, or
21732
           #   b. a variant of presentlang (because in this case,
21733
           #      presentlang can be used as a fallback for messages
21734
           #      which are not translated in the desiredlang catalog).
21735
           case "$desiredlang" in
21736
             "$presentlang"*) useit=yes;;
21737
           esac
21738
         done
21739
         if test $useit = yes; then
21740
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21741
         fi
21742
       done
21743
       LINGUAS=$NEW_LINGUAS
21744
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
21745
echo "${ECHO_T}$LINGUAS" >&6; }
21746
     fi
21747
21748
          if test -n "$LINGUAS"; then
21749
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21750
     fi
21751
   fi
21752
21753
            MKINSTALLDIRS=
21754
   if test -n "$ac_aux_dir"; then
21755
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21756
   fi
21757
   if test -z "$MKINSTALLDIRS"; then
21758
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21759
   fi
21760
21761
21762
         test -d po || mkdir po
21763
   if test "x$srcdir" != "x."; then
21764
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21765
       posrcprefix="$srcdir/"
21766
     else
21767
       posrcprefix="../$srcdir/"
21768
     fi
21769
   else
21770
     posrcprefix="../"
21771
   fi
21772
   rm -f po/POTFILES
21773
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21774
	< $srcdir/po/POTFILES.in > po/POTFILES
21775
21776
GETTEXT_PACKAGE=cairo-dock
21777
21778
cat >>confdefs.h <<_ACEOF
21779
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
21780
_ACEOF
21781
21782
21783
21784
# Checks for programs.
21785
ac_ext=c
21786
ac_cpp='$CPP $CPPFLAGS'
21787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21790
if test -n "$ac_tool_prefix"; then
21791
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
21792
set dummy ${ac_tool_prefix}gcc; ac_word=$2
21793
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21795
if test "${ac_cv_prog_CC+set}" = set; then
21796
  echo $ECHO_N "(cached) $ECHO_C" >&6
21797
else
21798
  if test -n "$CC"; then
21799
  ac_cv_prog_CC="$CC" # Let the user override the test.
21800
else
21801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21802
for as_dir in $PATH
21803
do
21804
  IFS=$as_save_IFS
21805
  test -z "$as_dir" && as_dir=.
21806
  for ac_exec_ext in '' $ac_executable_extensions; do
21807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21808
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
21809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21810
    break 2
21811
  fi
21812
done
21813
done
21814
IFS=$as_save_IFS
21815
21816
fi
21817
fi
21818
CC=$ac_cv_prog_CC
21819
if test -n "$CC"; then
21820
  { echo "$as_me:$LINENO: result: $CC" >&5
21821
echo "${ECHO_T}$CC" >&6; }
21822
else
21823
  { echo "$as_me:$LINENO: result: no" >&5
21824
echo "${ECHO_T}no" >&6; }
21825
fi
21826
21827
21828
fi
21829
if test -z "$ac_cv_prog_CC"; then
21830
  ac_ct_CC=$CC
21831
  # Extract the first word of "gcc", so it can be a program name with args.
21832
set dummy gcc; ac_word=$2
21833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21835
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21836
  echo $ECHO_N "(cached) $ECHO_C" >&6
21837
else
21838
  if test -n "$ac_ct_CC"; then
21839
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21840
else
21841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21842
for as_dir in $PATH
21843
do
21844
  IFS=$as_save_IFS
21845
  test -z "$as_dir" && as_dir=.
21846
  for ac_exec_ext in '' $ac_executable_extensions; do
21847
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21848
    ac_cv_prog_ac_ct_CC="gcc"
21849
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21850
    break 2
21851
  fi
21852
done
21853
done
21854
IFS=$as_save_IFS
21855
21856
fi
21857
fi
21858
ac_ct_CC=$ac_cv_prog_ac_ct_CC
21859
if test -n "$ac_ct_CC"; then
21860
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21861
echo "${ECHO_T}$ac_ct_CC" >&6; }
21862
else
21863
  { echo "$as_me:$LINENO: result: no" >&5
21864
echo "${ECHO_T}no" >&6; }
21865
fi
21866
21867
  if test "x$ac_ct_CC" = x; then
21868
    CC=""
21869
  else
21870
    case $cross_compiling:$ac_tool_warned in
21871
yes:)
21872
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21873
whose name does not start with the host triplet.  If you think this
21874
configuration is useful to you, please write to autoconf@gnu.org." >&5
21875
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21876
whose name does not start with the host triplet.  If you think this
21877
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21878
ac_tool_warned=yes ;;
21879
esac
21880
    CC=$ac_ct_CC
21881
  fi
21882
else
21883
  CC="$ac_cv_prog_CC"
21884
fi
21885
21886
if test -z "$CC"; then
21887
          if test -n "$ac_tool_prefix"; then
21888
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21889
set dummy ${ac_tool_prefix}cc; ac_word=$2
21890
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21892
if test "${ac_cv_prog_CC+set}" = set; then
21893
  echo $ECHO_N "(cached) $ECHO_C" >&6
21894
else
21895
  if test -n "$CC"; then
21896
  ac_cv_prog_CC="$CC" # Let the user override the test.
21897
else
21898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899
for as_dir in $PATH
21900
do
21901
  IFS=$as_save_IFS
21902
  test -z "$as_dir" && as_dir=.
21903
  for ac_exec_ext in '' $ac_executable_extensions; do
21904
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21905
    ac_cv_prog_CC="${ac_tool_prefix}cc"
21906
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21907
    break 2
21908
  fi
21909
done
21910
done
21911
IFS=$as_save_IFS
21912
21913
fi
21914
fi
21915
CC=$ac_cv_prog_CC
21916
if test -n "$CC"; then
21917
  { echo "$as_me:$LINENO: result: $CC" >&5
21918
echo "${ECHO_T}$CC" >&6; }
21919
else
21920
  { echo "$as_me:$LINENO: result: no" >&5
21921
echo "${ECHO_T}no" >&6; }
21922
fi
21923
21924
21925
  fi
21926
fi
21927
if test -z "$CC"; then
21928
  # Extract the first word of "cc", so it can be a program name with args.
21929
set dummy cc; ac_word=$2
21930
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21931
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21932
if test "${ac_cv_prog_CC+set}" = set; then
21933
  echo $ECHO_N "(cached) $ECHO_C" >&6
21934
else
21935
  if test -n "$CC"; then
21936
  ac_cv_prog_CC="$CC" # Let the user override the test.
21937
else
21938
  ac_prog_rejected=no
21939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21940
for as_dir in $PATH
21941
do
21942
  IFS=$as_save_IFS
21943
  test -z "$as_dir" && as_dir=.
21944
  for ac_exec_ext in '' $ac_executable_extensions; do
21945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21946
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21947
       ac_prog_rejected=yes
21948
       continue
21949
     fi
21950
    ac_cv_prog_CC="cc"
21951
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21952
    break 2
21953
  fi
21954
done
21955
done
21956
IFS=$as_save_IFS
21957
21958
if test $ac_prog_rejected = yes; then
21959
  # We found a bogon in the path, so make sure we never use it.
21960
  set dummy $ac_cv_prog_CC
21961
  shift
21962
  if test $# != 0; then
21963
    # We chose a different compiler from the bogus one.
21964
    # However, it has the same basename, so the bogon will be chosen
21965
    # first if we set CC to just the basename; use the full file name.
21966
    shift
21967
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
21968
  fi
21969
fi
21970
fi
21971
fi
21972
CC=$ac_cv_prog_CC
21973
if test -n "$CC"; then
21974
  { echo "$as_me:$LINENO: result: $CC" >&5
21975
echo "${ECHO_T}$CC" >&6; }
21976
else
21977
  { echo "$as_me:$LINENO: result: no" >&5
21978
echo "${ECHO_T}no" >&6; }
21979
fi
21980
21981
21982
fi
21983
if test -z "$CC"; then
21984
  if test -n "$ac_tool_prefix"; then
21985
  for ac_prog in cl.exe
21986
  do
21987
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21988
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21989
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21991
if test "${ac_cv_prog_CC+set}" = set; then
21992
  echo $ECHO_N "(cached) $ECHO_C" >&6
21993
else
21994
  if test -n "$CC"; then
21995
  ac_cv_prog_CC="$CC" # Let the user override the test.
21996
else
21997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21998
for as_dir in $PATH
21999
do
22000
  IFS=$as_save_IFS
22001
  test -z "$as_dir" && as_dir=.
22002
  for ac_exec_ext in '' $ac_executable_extensions; do
22003
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22004
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22005
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22006
    break 2
22007
  fi
22008
done
22009
done
22010
IFS=$as_save_IFS
22011
22012
fi
22013
fi
22014
CC=$ac_cv_prog_CC
22015
if test -n "$CC"; then
22016
  { echo "$as_me:$LINENO: result: $CC" >&5
22017
echo "${ECHO_T}$CC" >&6; }
22018
else
22019
  { echo "$as_me:$LINENO: result: no" >&5
22020
echo "${ECHO_T}no" >&6; }
22021
fi
22022
22023
22024
    test -n "$CC" && break
22025
  done
22026
fi
22027
if test -z "$CC"; then
22028
  ac_ct_CC=$CC
22029
  for ac_prog in cl.exe
22030
do
22031
  # Extract the first word of "$ac_prog", so it can be a program name with args.
22032
set dummy $ac_prog; ac_word=$2
22033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22035
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22036
  echo $ECHO_N "(cached) $ECHO_C" >&6
22037
else
22038
  if test -n "$ac_ct_CC"; then
22039
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22040
else
22041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22042
for as_dir in $PATH
22043
do
22044
  IFS=$as_save_IFS
22045
  test -z "$as_dir" && as_dir=.
22046
  for ac_exec_ext in '' $ac_executable_extensions; do
22047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22048
    ac_cv_prog_ac_ct_CC="$ac_prog"
22049
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22050
    break 2
22051
  fi
22052
done
22053
done
22054
IFS=$as_save_IFS
22055
22056
fi
22057
fi
22058
ac_ct_CC=$ac_cv_prog_ac_ct_CC
22059
if test -n "$ac_ct_CC"; then
22060
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22061
echo "${ECHO_T}$ac_ct_CC" >&6; }
22062
else
22063
  { echo "$as_me:$LINENO: result: no" >&5
22064
echo "${ECHO_T}no" >&6; }
22065
fi
22066
22067
22068
  test -n "$ac_ct_CC" && break
22069
done
22070
22071
  if test "x$ac_ct_CC" = x; then
22072
    CC=""
22073
  else
22074
    case $cross_compiling:$ac_tool_warned in
22075
yes:)
22076
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22077
whose name does not start with the host triplet.  If you think this
22078
configuration is useful to you, please write to autoconf@gnu.org." >&5
22079
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22080
whose name does not start with the host triplet.  If you think this
22081
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22082
ac_tool_warned=yes ;;
22083
esac
22084
    CC=$ac_ct_CC
22085
  fi
22086
fi
22087
22088
fi
22089
22090
22091
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22092
See \`config.log' for more details." >&5
22093
echo "$as_me: error: no acceptable C compiler found in \$PATH
22094
See \`config.log' for more details." >&2;}
22095
   { (exit 1); exit 1; }; }
22096
22097
# Provide some information about the compiler.
22098
echo "$as_me:$LINENO: checking for C compiler version" >&5
22099
ac_compiler=`set X $ac_compile; echo $2`
22100
{ (ac_try="$ac_compiler --version >&5"
22101
case "(($ac_try" in
22102
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103
  *) ac_try_echo=$ac_try;;
22104
esac
22105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106
  (eval "$ac_compiler --version >&5") 2>&5
22107
  ac_status=$?
22108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109
  (exit $ac_status); }
22110
{ (ac_try="$ac_compiler -v >&5"
22111
case "(($ac_try" in
22112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113
  *) ac_try_echo=$ac_try;;
22114
esac
22115
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116
  (eval "$ac_compiler -v >&5") 2>&5
22117
  ac_status=$?
22118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119
  (exit $ac_status); }
22120
{ (ac_try="$ac_compiler -V >&5"
22121
case "(($ac_try" in
22122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123
  *) ac_try_echo=$ac_try;;
22124
esac
22125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126
  (eval "$ac_compiler -V >&5") 2>&5
22127
  ac_status=$?
22128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129
  (exit $ac_status); }
22130
22131
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22132
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
22133
if test "${ac_cv_c_compiler_gnu+set}" = set; then
22134
  echo $ECHO_N "(cached) $ECHO_C" >&6
22135
else
22136
  cat >conftest.$ac_ext <<_ACEOF
22137
/* confdefs.h.  */
22138
_ACEOF
22139
cat confdefs.h >>conftest.$ac_ext
22140
cat >>conftest.$ac_ext <<_ACEOF
22141
/* end confdefs.h.  */
22142
22143
int
22144
main ()
22145
{
22146
#ifndef __GNUC__
22147
       choke me
22148
#endif
22149
22150
  ;
22151
  return 0;
22152
}
22153
_ACEOF
22154
rm -f conftest.$ac_objext
22155
if { (ac_try="$ac_compile"
22156
case "(($ac_try" in
22157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158
  *) ac_try_echo=$ac_try;;
22159
esac
22160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161
  (eval "$ac_compile") 2>conftest.er1
22162
  ac_status=$?
22163
  grep -v '^ *+' conftest.er1 >conftest.err
22164
  rm -f conftest.er1
22165
  cat conftest.err >&5
22166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167
  (exit $ac_status); } && {
22168
	 test -z "$ac_c_werror_flag" ||
22169
	 test ! -s conftest.err
22170
       } && test -s conftest.$ac_objext; then
22171
  ac_compiler_gnu=yes
22172
else
22173
  echo "$as_me: failed program was:" >&5
22174
sed 's/^/| /' conftest.$ac_ext >&5
22175
22176
	ac_compiler_gnu=no
22177
fi
22178
22179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180
ac_cv_c_compiler_gnu=$ac_compiler_gnu
22181
22182
fi
22183
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22184
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
22185
GCC=`test $ac_compiler_gnu = yes && echo yes`
22186
ac_test_CFLAGS=${CFLAGS+set}
22187
ac_save_CFLAGS=$CFLAGS
22188
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22189
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
22190
if test "${ac_cv_prog_cc_g+set}" = set; then
22191
  echo $ECHO_N "(cached) $ECHO_C" >&6
22192
else
22193
  ac_save_c_werror_flag=$ac_c_werror_flag
22194
   ac_c_werror_flag=yes
22195
   ac_cv_prog_cc_g=no
22196
   CFLAGS="-g"
22197
   cat >conftest.$ac_ext <<_ACEOF
22198
/* confdefs.h.  */
22199
_ACEOF
22200
cat confdefs.h >>conftest.$ac_ext
22201
cat >>conftest.$ac_ext <<_ACEOF
22202
/* end confdefs.h.  */
22203
22204
int
22205
main ()
22206
{
22207
22208
  ;
22209
  return 0;
22210
}
22211
_ACEOF
22212
rm -f conftest.$ac_objext
22213
if { (ac_try="$ac_compile"
22214
case "(($ac_try" in
22215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216
  *) ac_try_echo=$ac_try;;
22217
esac
22218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219
  (eval "$ac_compile") 2>conftest.er1
22220
  ac_status=$?
22221
  grep -v '^ *+' conftest.er1 >conftest.err
22222
  rm -f conftest.er1
22223
  cat conftest.err >&5
22224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225
  (exit $ac_status); } && {
22226
	 test -z "$ac_c_werror_flag" ||
22227
	 test ! -s conftest.err
22228
       } && test -s conftest.$ac_objext; then
22229
  ac_cv_prog_cc_g=yes
22230
else
22231
  echo "$as_me: failed program was:" >&5
22232
sed 's/^/| /' conftest.$ac_ext >&5
22233
22234
	CFLAGS=""
22235
      cat >conftest.$ac_ext <<_ACEOF
22236
/* confdefs.h.  */
22237
_ACEOF
22238
cat confdefs.h >>conftest.$ac_ext
22239
cat >>conftest.$ac_ext <<_ACEOF
22240
/* end confdefs.h.  */
22241
22242
int
22243
main ()
22244
{
22245
22246
  ;
22247
  return 0;
22248
}
22249
_ACEOF
22250
rm -f conftest.$ac_objext
22251
if { (ac_try="$ac_compile"
22252
case "(($ac_try" in
22253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254
  *) ac_try_echo=$ac_try;;
22255
esac
22256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257
  (eval "$ac_compile") 2>conftest.er1
22258
  ac_status=$?
22259
  grep -v '^ *+' conftest.er1 >conftest.err
22260
  rm -f conftest.er1
22261
  cat conftest.err >&5
22262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263
  (exit $ac_status); } && {
22264
	 test -z "$ac_c_werror_flag" ||
22265
	 test ! -s conftest.err
22266
       } && test -s conftest.$ac_objext; then
22267
  :
22268
else
22269
  echo "$as_me: failed program was:" >&5
22270
sed 's/^/| /' conftest.$ac_ext >&5
22271
22272
	ac_c_werror_flag=$ac_save_c_werror_flag
22273
	 CFLAGS="-g"
22274
	 cat >conftest.$ac_ext <<_ACEOF
22275
/* confdefs.h.  */
22276
_ACEOF
22277
cat confdefs.h >>conftest.$ac_ext
22278
cat >>conftest.$ac_ext <<_ACEOF
22279
/* end confdefs.h.  */
22280
22281
int
22282
main ()
22283
{
22284
22285
  ;
22286
  return 0;
22287
}
22288
_ACEOF
22289
rm -f conftest.$ac_objext
22290
if { (ac_try="$ac_compile"
22291
case "(($ac_try" in
22292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293
  *) ac_try_echo=$ac_try;;
22294
esac
22295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296
  (eval "$ac_compile") 2>conftest.er1
22297
  ac_status=$?
22298
  grep -v '^ *+' conftest.er1 >conftest.err
22299
  rm -f conftest.er1
22300
  cat conftest.err >&5
22301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302
  (exit $ac_status); } && {
22303
	 test -z "$ac_c_werror_flag" ||
22304
	 test ! -s conftest.err
22305
       } && test -s conftest.$ac_objext; then
22306
  ac_cv_prog_cc_g=yes
22307
else
22308
  echo "$as_me: failed program was:" >&5
22309
sed 's/^/| /' conftest.$ac_ext >&5
22310
22311
22312
fi
22313
22314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315
fi
22316
22317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318
fi
22319
22320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321
   ac_c_werror_flag=$ac_save_c_werror_flag
22322
fi
22323
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22324
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
22325
if test "$ac_test_CFLAGS" = set; then
22326
  CFLAGS=$ac_save_CFLAGS
22327
elif test $ac_cv_prog_cc_g = yes; then
22328
  if test "$GCC" = yes; then
22329
    CFLAGS="-g -O2"
22330
  else
22331
    CFLAGS="-g"
22332
  fi
22333
else
22334
  if test "$GCC" = yes; then
22335
    CFLAGS="-O2"
22336
  else
22337
    CFLAGS=
22338
  fi
22339
fi
22340
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
22341
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
22342
if test "${ac_cv_prog_cc_c89+set}" = set; then
22343
  echo $ECHO_N "(cached) $ECHO_C" >&6
22344
else
22345
  ac_cv_prog_cc_c89=no
22346
ac_save_CC=$CC
22347
cat >conftest.$ac_ext <<_ACEOF
22348
/* confdefs.h.  */
22349
_ACEOF
22350
cat confdefs.h >>conftest.$ac_ext
22351
cat >>conftest.$ac_ext <<_ACEOF
22352
/* end confdefs.h.  */
22353
#include <stdarg.h>
22354
#include <stdio.h>
22355
#include <sys/types.h>
22356
#include <sys/stat.h>
22357
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22358
struct buf { int x; };
22359
FILE * (*rcsopen) (struct buf *, struct stat *, int);
22360
static char *e (p, i)
22361
     char **p;
22362
     int i;
22363
{
22364
  return p[i];
22365
}
22366
static char *f (char * (*g) (char **, int), char **p, ...)
22367
{
22368
  char *s;
22369
  va_list v;
22370
  va_start (v,p);
22371
  s = g (p, va_arg (v,int));
22372
  va_end (v);
22373
  return s;
22374
}
22375
22376
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22377
   function prototypes and stuff, but not '\xHH' hex character constants.
22378
   These don't provoke an error unfortunately, instead are silently treated
22379
   as 'x'.  The following induces an error, until -std is added to get
22380
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22381
   array size at least.  It's necessary to write '\x00'==0 to get something
22382
   that's true only with -std.  */
22383
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22384
22385
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
22386
   inside strings and character constants.  */
22387
#define FOO(x) 'x'
22388
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
22389
22390
int test (int i, double x);
22391
struct s1 {int (*f) (int a);};
22392
struct s2 {int (*f) (double a);};
22393
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22394
int argc;
22395
char **argv;
22396
int
22397
main ()
22398
{
22399
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22400
  ;
22401
  return 0;
22402
}
22403
_ACEOF
22404
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
22405
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22406
do
22407
  CC="$ac_save_CC $ac_arg"
22408
  rm -f conftest.$ac_objext
22409
if { (ac_try="$ac_compile"
22410
case "(($ac_try" in
22411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412
  *) ac_try_echo=$ac_try;;
22413
esac
22414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415
  (eval "$ac_compile") 2>conftest.er1
22416
  ac_status=$?
22417
  grep -v '^ *+' conftest.er1 >conftest.err
22418
  rm -f conftest.er1
22419
  cat conftest.err >&5
22420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421
  (exit $ac_status); } && {
22422
	 test -z "$ac_c_werror_flag" ||
22423
	 test ! -s conftest.err
22424
       } && test -s conftest.$ac_objext; then
22425
  ac_cv_prog_cc_c89=$ac_arg
22426
else
22427
  echo "$as_me: failed program was:" >&5
22428
sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431
fi
22432
22433
rm -f core conftest.err conftest.$ac_objext
22434
  test "x$ac_cv_prog_cc_c89" != "xno" && break
22435
done
22436
rm -f conftest.$ac_ext
22437
CC=$ac_save_CC
22438
22439
fi
22440
# AC_CACHE_VAL
22441
case "x$ac_cv_prog_cc_c89" in
22442
  x)
22443
    { echo "$as_me:$LINENO: result: none needed" >&5
22444
echo "${ECHO_T}none needed" >&6; } ;;
22445
  xno)
22446
    { echo "$as_me:$LINENO: result: unsupported" >&5
22447
echo "${ECHO_T}unsupported" >&6; } ;;
22448
  *)
22449
    CC="$CC $ac_cv_prog_cc_c89"
22450
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
22451
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
22452
esac
22453
22454
22455
ac_ext=c
22456
ac_cpp='$CPP $CPPFLAGS'
22457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22460
22461
depcc="$CC"   am_compiler_list=
22462
22463
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22464
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
22465
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22466
  echo $ECHO_N "(cached) $ECHO_C" >&6
22467
else
22468
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22469
  # We make a subdir and do the tests there.  Otherwise we can end up
22470
  # making bogus files that we don't know about and never remove.  For
22471
  # instance it was reported that on HP-UX the gcc test will end up
22472
  # making a dummy file named `D' -- because `-MD' means `put the output
22473
  # in D'.
22474
  mkdir conftest.dir
22475
  # Copy depcomp to subdir because otherwise we won't find it if we're
22476
  # using a relative directory.
22477
  cp "$am_depcomp" conftest.dir
22478
  cd conftest.dir
22479
  # We will build objects and dependencies in a subdirectory because
22480
  # it helps to detect inapplicable dependency modes.  For instance
22481
  # both Tru64's cc and ICC support -MD to output dependencies as a
22482
  # side effect of compilation, but ICC will put the dependencies in
22483
  # the current directory while Tru64 will put them in the object
22484
  # directory.
22485
  mkdir sub
22486
22487
  am_cv_CC_dependencies_compiler_type=none
22488
  if test "$am_compiler_list" = ""; then
22489
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22490
  fi
22491
  for depmode in $am_compiler_list; do
22492
    # Setup a source with many dependencies, because some compilers
22493
    # like to wrap large dependency lists on column 80 (with \), and
22494
    # we should not choose a depcomp mode which is confused by this.
22495
    #
22496
    # We need to recreate these files for each test, as the compiler may
22497
    # overwrite some of them when testing with obscure command lines.
22498
    # This happens at least with the AIX C compiler.
22499
    : > sub/conftest.c
22500
    for i in 1 2 3 4 5 6; do
22501
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
22502
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22503
      # Solaris 8's {/usr,}/bin/sh.
22504
      touch sub/conftst$i.h
22505
    done
22506
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22507
22508
    case $depmode in
22509
    nosideeffect)
22510
      # after this tag, mechanisms are not by side-effect, so they'll
22511
      # only be used when explicitly requested
22512
      if test "x$enable_dependency_tracking" = xyes; then
22513
	continue
22514
      else
22515
	break
22516
      fi
22517
      ;;
22518
    none) break ;;
22519
    esac
22520
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
22521
    # mode.  It turns out that the SunPro C++ compiler does not properly
22522
    # handle `-M -o', and we need to detect this.
22523
    if depmode=$depmode \
22524
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22525
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22526
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22527
         >/dev/null 2>conftest.err &&
22528
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22529
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22530
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22531
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22532
      # icc doesn't choke on unknown options, it will just issue warnings
22533
      # or remarks (even with -Werror).  So we grep stderr for any message
22534
      # that says an option was ignored or not supported.
22535
      # When given -MP, icc 7.0 and 7.1 complain thusly:
22536
      #   icc: Command line warning: ignoring option '-M'; no argument required
22537
      # The diagnosis changed in icc 8.0:
22538
      #   icc: Command line remark: option '-MP' not supported
22539
      if (grep 'ignoring option' conftest.err ||
22540
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22541
        am_cv_CC_dependencies_compiler_type=$depmode
22542
        break
22543
      fi
22544
    fi
22545
  done
22546
22547
  cd ..
22548
  rm -rf conftest.dir
22549
else
22550
  am_cv_CC_dependencies_compiler_type=none
22551
fi
22552
22553
fi
22554
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22555
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
22556
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22557
22558
 if
22559
  test "x$enable_dependency_tracking" != xno \
22560
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22561
  am__fastdepCC_TRUE=
22562
  am__fastdepCC_FALSE='#'
22563
else
22564
  am__fastdepCC_TRUE='#'
22565
  am__fastdepCC_FALSE=
22566
fi
22567
22568
22569
22570
# Checks for libraries.
22571
22572
# Checks for header files.
22573
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22574
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22575
if test "${ac_cv_header_stdc+set}" = set; then
22576
  echo $ECHO_N "(cached) $ECHO_C" >&6
22577
else
22578
  cat >conftest.$ac_ext <<_ACEOF
22579
/* confdefs.h.  */
22580
_ACEOF
22581
cat confdefs.h >>conftest.$ac_ext
22582
cat >>conftest.$ac_ext <<_ACEOF
22583
/* end confdefs.h.  */
22584
#include <stdlib.h>
22585
#include <stdarg.h>
22586
#include <string.h>
22587
#include <float.h>
22588
22589
int
22590
main ()
22591
{
22592
22593
  ;
22594
  return 0;
22595
}
22596
_ACEOF
22597
rm -f conftest.$ac_objext
22598
if { (ac_try="$ac_compile"
22599
case "(($ac_try" in
22600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601
  *) ac_try_echo=$ac_try;;
22602
esac
22603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604
  (eval "$ac_compile") 2>conftest.er1
22605
  ac_status=$?
22606
  grep -v '^ *+' conftest.er1 >conftest.err
22607
  rm -f conftest.er1
22608
  cat conftest.err >&5
22609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610
  (exit $ac_status); } && {
22611
	 test -z "$ac_c_werror_flag" ||
22612
	 test ! -s conftest.err
22613
       } && test -s conftest.$ac_objext; then
22614
  ac_cv_header_stdc=yes
22615
else
22616
  echo "$as_me: failed program was:" >&5
22617
sed 's/^/| /' conftest.$ac_ext >&5
22618
22619
	ac_cv_header_stdc=no
22620
fi
22621
22622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623
22624
if test $ac_cv_header_stdc = yes; then
22625
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22626
  cat >conftest.$ac_ext <<_ACEOF
22627
/* confdefs.h.  */
22628
_ACEOF
22629
cat confdefs.h >>conftest.$ac_ext
22630
cat >>conftest.$ac_ext <<_ACEOF
22631
/* end confdefs.h.  */
22632
#include <string.h>
22633
22634
_ACEOF
22635
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22636
  $EGREP "memchr" >/dev/null 2>&1; then
22637
  :
22638
else
22639
  ac_cv_header_stdc=no
22640
fi
22641
rm -f conftest*
22642
22643
fi
22644
22645
if test $ac_cv_header_stdc = yes; then
22646
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22647
  cat >conftest.$ac_ext <<_ACEOF
22648
/* confdefs.h.  */
22649
_ACEOF
22650
cat confdefs.h >>conftest.$ac_ext
22651
cat >>conftest.$ac_ext <<_ACEOF
22652
/* end confdefs.h.  */
22653
#include <stdlib.h>
22654
22655
_ACEOF
22656
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22657
  $EGREP "free" >/dev/null 2>&1; then
22658
  :
22659
else
22660
  ac_cv_header_stdc=no
22661
fi
22662
rm -f conftest*
22663
22664
fi
22665
22666
if test $ac_cv_header_stdc = yes; then
22667
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22668
  if test "$cross_compiling" = yes; then
22669
  :
22670
else
22671
  cat >conftest.$ac_ext <<_ACEOF
22672
/* confdefs.h.  */
22673
_ACEOF
22674
cat confdefs.h >>conftest.$ac_ext
22675
cat >>conftest.$ac_ext <<_ACEOF
22676
/* end confdefs.h.  */
22677
#include <ctype.h>
22678
#include <stdlib.h>
22679
#if ((' ' & 0x0FF) == 0x020)
22680
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22681
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22682
#else
22683
# define ISLOWER(c) \
22684
		   (('a' <= (c) && (c) <= 'i') \
22685
		     || ('j' <= (c) && (c) <= 'r') \
22686
		     || ('s' <= (c) && (c) <= 'z'))
22687
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22688
#endif
22689
22690
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22691
int
22692
main ()
22693
{
22694
  int i;
22695
  for (i = 0; i < 256; i++)
22696
    if (XOR (islower (i), ISLOWER (i))
22697
	|| toupper (i) != TOUPPER (i))
22698
      return 2;
22699
  return 0;
22700
}
22701
_ACEOF
22702
rm -f conftest$ac_exeext
22703
if { (ac_try="$ac_link"
22704
case "(($ac_try" in
22705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706
  *) ac_try_echo=$ac_try;;
22707
esac
22708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709
  (eval "$ac_link") 2>&5
22710
  ac_status=$?
22711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22713
  { (case "(($ac_try" in
22714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715
  *) ac_try_echo=$ac_try;;
22716
esac
22717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718
  (eval "$ac_try") 2>&5
22719
  ac_status=$?
22720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721
  (exit $ac_status); }; }; then
22722
  :
22723
else
22724
  echo "$as_me: program exited with status $ac_status" >&5
22725
echo "$as_me: failed program was:" >&5
22726
sed 's/^/| /' conftest.$ac_ext >&5
22727
22728
( exit $ac_status )
22729
ac_cv_header_stdc=no
22730
fi
22731
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22732
fi
22733
22734
22735
fi
22736
fi
22737
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22738
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22739
if test $ac_cv_header_stdc = yes; then
22740
22741
cat >>confdefs.h <<\_ACEOF
22742
#define STDC_HEADERS 1
22743
_ACEOF
22744
22745
fi
22746
22747
22748
22749
for ac_header in math.h stdlib.h
22750
do
22751
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22752
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22753
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22754
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22755
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22756
  echo $ECHO_N "(cached) $ECHO_C" >&6
22757
fi
22758
ac_res=`eval echo '${'$as_ac_Header'}'`
22759
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22760
echo "${ECHO_T}$ac_res" >&6; }
22761
else
22762
  # Is the header compilable?
22763
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22764
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22765
cat >conftest.$ac_ext <<_ACEOF
22766
/* confdefs.h.  */
22767
_ACEOF
22768
cat confdefs.h >>conftest.$ac_ext
22769
cat >>conftest.$ac_ext <<_ACEOF
22770
/* end confdefs.h.  */
22771
$ac_includes_default
22772
#include <$ac_header>
22773
_ACEOF
22774
rm -f conftest.$ac_objext
22775
if { (ac_try="$ac_compile"
22776
case "(($ac_try" in
22777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778
  *) ac_try_echo=$ac_try;;
22779
esac
22780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781
  (eval "$ac_compile") 2>conftest.er1
22782
  ac_status=$?
22783
  grep -v '^ *+' conftest.er1 >conftest.err
22784
  rm -f conftest.er1
22785
  cat conftest.err >&5
22786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787
  (exit $ac_status); } && {
22788
	 test -z "$ac_c_werror_flag" ||
22789
	 test ! -s conftest.err
22790
       } && test -s conftest.$ac_objext; then
22791
  ac_header_compiler=yes
22792
else
22793
  echo "$as_me: failed program was:" >&5
22794
sed 's/^/| /' conftest.$ac_ext >&5
22795
22796
	ac_header_compiler=no
22797
fi
22798
22799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22801
echo "${ECHO_T}$ac_header_compiler" >&6; }
22802
22803
# Is the header present?
22804
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22805
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22806
cat >conftest.$ac_ext <<_ACEOF
22807
/* confdefs.h.  */
22808
_ACEOF
22809
cat confdefs.h >>conftest.$ac_ext
22810
cat >>conftest.$ac_ext <<_ACEOF
22811
/* end confdefs.h.  */
22812
#include <$ac_header>
22813
_ACEOF
22814
if { (ac_try="$ac_cpp conftest.$ac_ext"
22815
case "(($ac_try" in
22816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817
  *) ac_try_echo=$ac_try;;
22818
esac
22819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22821
  ac_status=$?
22822
  grep -v '^ *+' conftest.er1 >conftest.err
22823
  rm -f conftest.er1
22824
  cat conftest.err >&5
22825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826
  (exit $ac_status); } >/dev/null && {
22827
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22828
	 test ! -s conftest.err
22829
       }; then
22830
  ac_header_preproc=yes
22831
else
22832
  echo "$as_me: failed program was:" >&5
22833
sed 's/^/| /' conftest.$ac_ext >&5
22834
22835
  ac_header_preproc=no
22836
fi
22837
22838
rm -f conftest.err conftest.$ac_ext
22839
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22840
echo "${ECHO_T}$ac_header_preproc" >&6; }
22841
22842
# So?  What about this header?
22843
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22844
  yes:no: )
22845
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22846
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22847
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22848
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22849
    ac_header_preproc=yes
22850
    ;;
22851
  no:yes:* )
22852
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22853
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22854
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22855
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22856
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22857
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22858
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22859
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22860
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22861
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22862
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22863
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22864
    ( cat <<\_ASBOX
22865
## ------------------------------------------------------ ##
22866
## Report this to Fabrice Rey (fabounet@users.berlios.de) ##
22867
## ------------------------------------------------------ ##
22868
_ASBOX
22869
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22870
    ;;
22871
esac
22872
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22873
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22874
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22875
  echo $ECHO_N "(cached) $ECHO_C" >&6
22876
else
22877
  eval "$as_ac_Header=\$ac_header_preproc"
22878
fi
22879
ac_res=`eval echo '${'$as_ac_Header'}'`
22880
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22881
echo "${ECHO_T}$ac_res" >&6; }
22882
22883
fi
22884
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22885
  cat >>confdefs.h <<_ACEOF
22886
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22887
_ACEOF
22888
22889
fi
22890
22891
done
22892
22893
22894
# Checks for typedefs, structures, and compiler characteristics.
22895
# AC_C_CONST
22896
# AC_TYPE_PID_T
22897
22898
# Checks for library functions.
22899
# AC_CHECK_FUNCS([sscanf])
22900
22901
22902
 if test x$enable_verbose = xyes; then
22903
  COMPIL_VERBOSE_TRUE=
22904
  COMPIL_VERBOSE_FALSE='#'
22905
else
22906
  COMPIL_VERBOSE_TRUE='#'
22907
  COMPIL_VERBOSE_FALSE=
22908
fi
22909
22910
 if test x$enable_glitz = xyes; then
22911
  COMPIL_WITH_GLITZ_TRUE=
22912
  COMPIL_WITH_GLITZ_FALSE='#'
22913
else
22914
  COMPIL_WITH_GLITZ_TRUE='#'
22915
  COMPIL_WITH_GLITZ_FALSE=
22916
fi
22917
22918
22919
22920
22921
22922
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22923
	if test -n "$ac_tool_prefix"; then
22924
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22925
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22926
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22927
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22928
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22929
  echo $ECHO_N "(cached) $ECHO_C" >&6
22930
else
22931
  case $PKG_CONFIG in
22932
  [\\/]* | ?:[\\/]*)
22933
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22934
  ;;
22935
  *)
22936
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22937
for as_dir in $PATH
22938
do
22939
  IFS=$as_save_IFS
22940
  test -z "$as_dir" && as_dir=.
22941
  for ac_exec_ext in '' $ac_executable_extensions; do
22942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22943
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22944
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22945
    break 2
22946
  fi
22947
done
22948
done
22949
IFS=$as_save_IFS
22950
22951
  ;;
22952
esac
22953
fi
22954
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22955
if test -n "$PKG_CONFIG"; then
22956
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22957
echo "${ECHO_T}$PKG_CONFIG" >&6; }
22958
else
22959
  { echo "$as_me:$LINENO: result: no" >&5
22960
echo "${ECHO_T}no" >&6; }
22961
fi
22962
22963
22964
fi
22965
if test -z "$ac_cv_path_PKG_CONFIG"; then
22966
  ac_pt_PKG_CONFIG=$PKG_CONFIG
22967
  # Extract the first word of "pkg-config", so it can be a program name with args.
22968
set dummy pkg-config; ac_word=$2
22969
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22971
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22972
  echo $ECHO_N "(cached) $ECHO_C" >&6
22973
else
22974
  case $ac_pt_PKG_CONFIG in
22975
  [\\/]* | ?:[\\/]*)
22976
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22977
  ;;
22978
  *)
22979
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980
for as_dir in $PATH
22981
do
22982
  IFS=$as_save_IFS
22983
  test -z "$as_dir" && as_dir=.
22984
  for ac_exec_ext in '' $ac_executable_extensions; do
22985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22986
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22988
    break 2
22989
  fi
22990
done
22991
done
22992
IFS=$as_save_IFS
22993
22994
  ;;
22995
esac
22996
fi
22997
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22998
if test -n "$ac_pt_PKG_CONFIG"; then
22999
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23000
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
23001
else
23002
  { echo "$as_me:$LINENO: result: no" >&5
23003
echo "${ECHO_T}no" >&6; }
23004
fi
23005
23006
  if test "x$ac_pt_PKG_CONFIG" = x; then
23007
    PKG_CONFIG=""
23008
  else
23009
    case $cross_compiling:$ac_tool_warned in
23010
yes:)
23011
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23012
whose name does not start with the host triplet.  If you think this
23013
configuration is useful to you, please write to autoconf@gnu.org." >&5
23014
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23015
whose name does not start with the host triplet.  If you think this
23016
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23017
ac_tool_warned=yes ;;
23018
esac
23019
    PKG_CONFIG=$ac_pt_PKG_CONFIG
23020
  fi
23021
else
23022
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23023
fi
23024
23025
fi
23026
if test -n "$PKG_CONFIG"; then
23027
	_pkg_min_version=0.9.0
23028
	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23029
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
23030
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23031
		{ echo "$as_me:$LINENO: result: yes" >&5
23032
echo "${ECHO_T}yes" >&6; }
23033
	else
23034
		{ echo "$as_me:$LINENO: result: no" >&5
23035
echo "${ECHO_T}no" >&6; }
23036
		PKG_CONFIG=""
23037
	fi
23038
23039
fi
23040
23041
pkg_failed=no
23042
{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
23043
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
23044
23045
if test -n "$PKG_CONFIG"; then
23046
    if test -n "$PACKAGE_CFLAGS"; then
23047
        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
23048
    else
23049
        if test -n "$PKG_CONFIG" && \
23050
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0\"\"") >&5
23051
  ($PKG_CONFIG --exists --print-errors ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0"") 2>&5
23052
  ac_status=$?
23053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054
  (exit $ac_status); }; then
23055
  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0"" 2>/dev/null`
23056
else
23057
  pkg_failed=yes
23058
fi
23059
    fi
23060
else
23061
	pkg_failed=untried
23062
fi
23063
if test -n "$PKG_CONFIG"; then
23064
    if test -n "$PACKAGE_LIBS"; then
23065
        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
23066
    else
23067
        if test -n "$PKG_CONFIG" && \
23068
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0\"\"") >&5
23069
  ($PKG_CONFIG --exists --print-errors ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0"") 2>&5
23070
  ac_status=$?
23071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072
  (exit $ac_status); }; then
23073
  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0"" 2>/dev/null`
23074
else
23075
  pkg_failed=yes
23076
fi
23077
    fi
23078
else
23079
	pkg_failed=untried
23080
fi
23081
23082
23083
23084
if test $pkg_failed = yes; then
23085
23086
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23087
        _pkg_short_errors_supported=yes
23088
else
23089
        _pkg_short_errors_supported=no
23090
fi
23091
        if test $_pkg_short_errors_supported = yes; then
23092
	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0""`
23093
        else
23094
	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0""`
23095
        fi
23096
	# Put the nasty error message in config.log where it belongs
23097
	echo "$PACKAGE_PKG_ERRORS" >&5
23098
23099
	{ { echo "$as_me:$LINENO: error: Package requirements (\"gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0\") were not met:
23100
23101
$PACKAGE_PKG_ERRORS
23102
23103
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23104
installed software in a non-standard prefix.
23105
23106
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23107
and PACKAGE_LIBS to avoid the need to call pkg-config.
23108
See the pkg-config man page for more details.
23109
" >&5
23110
echo "$as_me: error: Package requirements (\"gtk+-2.0 gthread-2.0 cairo librsvg-2.0 glitz dbus-1 dbus-glib-1 libxml-2.0\") were not met:
23111
23112
$PACKAGE_PKG_ERRORS
23113
23114
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23115
installed software in a non-standard prefix.
23116
23117
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23118
and PACKAGE_LIBS to avoid the need to call pkg-config.
23119
See the pkg-config man page for more details.
23120
" >&2;}
23121
   { (exit 1); exit 1; }; }
23122
elif test $pkg_failed = untried; then
23123
	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23124
is in your PATH or set the PKG_CONFIG environment variable to the full
23125
path to pkg-config.
23126
23127
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23128
and PACKAGE_LIBS to avoid the need to call pkg-config.
23129
See the pkg-config man page for more details.
23130
23131
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23132
See \`config.log' for more details." >&5
23133
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23134
is in your PATH or set the PKG_CONFIG environment variable to the full
23135
path to pkg-config.
23136
23137
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23138
and PACKAGE_LIBS to avoid the need to call pkg-config.
23139
See the pkg-config man page for more details.
23140
23141
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23142
See \`config.log' for more details." >&2;}
23143
   { (exit 1); exit 1; }; }
23144
else
23145
	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
23146
	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
23147
        { echo "$as_me:$LINENO: result: yes" >&5
23148
echo "${ECHO_T}yes" >&6; }
23149
	:
23150
fi
23151
23152
pkg_failed=no
23153
{ echo "$as_me:$LINENO: checking for GLITZ" >&5
23154
echo $ECHO_N "checking for GLITZ... $ECHO_C" >&6; }
23155
23156
if test -n "$PKG_CONFIG"; then
23157
    if test -n "$GLITZ_CFLAGS"; then
23158
        pkg_cv_GLITZ_CFLAGS="$GLITZ_CFLAGS"
23159
    else
23160
        if test -n "$PKG_CONFIG" && \
23161
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glitz-glx\"\"") >&5
23162
  ($PKG_CONFIG --exists --print-errors ""glitz-glx"") 2>&5
23163
  ac_status=$?
23164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165
  (exit $ac_status); }; then
23166
  pkg_cv_GLITZ_CFLAGS=`$PKG_CONFIG --cflags ""glitz-glx"" 2>/dev/null`
23167
else
23168
  pkg_failed=yes
23169
fi
23170
    fi
23171
else
23172
	pkg_failed=untried
23173
fi
23174
if test -n "$PKG_CONFIG"; then
23175
    if test -n "$GLITZ_LIBS"; then
23176
        pkg_cv_GLITZ_LIBS="$GLITZ_LIBS"
23177
    else
23178
        if test -n "$PKG_CONFIG" && \
23179
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glitz-glx\"\"") >&5
23180
  ($PKG_CONFIG --exists --print-errors ""glitz-glx"") 2>&5
23181
  ac_status=$?
23182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183
  (exit $ac_status); }; then
23184
  pkg_cv_GLITZ_LIBS=`$PKG_CONFIG --libs ""glitz-glx"" 2>/dev/null`
23185
else
23186
  pkg_failed=yes
23187
fi
23188
    fi
23189
else
23190
	pkg_failed=untried
23191
fi
23192
23193
23194
23195
if test $pkg_failed = yes; then
23196
23197
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23198
        _pkg_short_errors_supported=yes
23199
else
23200
        _pkg_short_errors_supported=no
23201
fi
23202
        if test $_pkg_short_errors_supported = yes; then
23203
	        GLITZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glitz-glx""`
23204
        else
23205
	        GLITZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glitz-glx""`
23206
        fi
23207
	# Put the nasty error message in config.log where it belongs
23208
	echo "$GLITZ_PKG_ERRORS" >&5
23209
23210
	{ { echo "$as_me:$LINENO: error: Package requirements (\"glitz-glx\") were not met:
23211
23212
$GLITZ_PKG_ERRORS
23213
23214
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23215
installed software in a non-standard prefix.
23216
23217
Alternatively, you may set the environment variables GLITZ_CFLAGS
23218
and GLITZ_LIBS to avoid the need to call pkg-config.
23219
See the pkg-config man page for more details.
23220
" >&5
23221
echo "$as_me: error: Package requirements (\"glitz-glx\") were not met:
23222
23223
$GLITZ_PKG_ERRORS
23224
23225
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23226
installed software in a non-standard prefix.
23227
23228
Alternatively, you may set the environment variables GLITZ_CFLAGS
23229
and GLITZ_LIBS to avoid the need to call pkg-config.
23230
See the pkg-config man page for more details.
23231
" >&2;}
23232
   { (exit 1); exit 1; }; }
23233
elif test $pkg_failed = untried; then
23234
	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23235
is in your PATH or set the PKG_CONFIG environment variable to the full
23236
path to pkg-config.
23237
23238
Alternatively, you may set the environment variables GLITZ_CFLAGS
23239
and GLITZ_LIBS to avoid the need to call pkg-config.
23240
See the pkg-config man page for more details.
23241
23242
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23243
See \`config.log' for more details." >&5
23244
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23245
is in your PATH or set the PKG_CONFIG environment variable to the full
23246
path to pkg-config.
23247
23248
Alternatively, you may set the environment variables GLITZ_CFLAGS
23249
and GLITZ_LIBS to avoid the need to call pkg-config.
23250
See the pkg-config man page for more details.
23251
23252
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23253
See \`config.log' for more details." >&2;}
23254
   { (exit 1); exit 1; }; }
23255
else
23256
	GLITZ_CFLAGS=$pkg_cv_GLITZ_CFLAGS
23257
	GLITZ_LIBS=$pkg_cv_GLITZ_LIBS
23258
        { echo "$as_me:$LINENO: result: yes" >&5
23259
echo "${ECHO_T}yes" >&6; }
23260
	:
23261
fi
23262
23263
ac_config_files="$ac_config_files Makefile cairo-dock.pc src/Makefile po/Makefile.in data/Makefile data/cairo-dock.conf data/main-dock.conf data/default-theme/Makefile data/default-theme/launchers/Makefile data/gauges/Makefile data/gauges/radium/Makefile data/gauges/radium-fuel/Makefile data/gauges/battery/Makefile data/gauges/old-square/Makefile data/gauges/turbo-night/Makefile data/gauges/turbo-night-fuel/Makefile data/gauges/turbo-night-dual/Makefile data/gauges/rainbow/Makefile data/gauges/tomato/Makefile"
23264
23265
cat >confcache <<\_ACEOF
23266
# This file is a shell script that caches the results of configure
23267
# tests run on this system so they can be shared between configure
23268
# scripts and configure runs, see configure's option --config-cache.
23269
# It is not useful on other systems.  If it contains results you don't
23270
# want to keep, you may remove or edit it.
23271
#
23272
# config.status only pays attention to the cache file if you give it
23273
# the --recheck option to rerun configure.
23274
#
23275
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23276
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23277
# following values.
23278
23279
_ACEOF
23280
23281
# The following way of writing the cache mishandles newlines in values,
23282
# but we know of no workaround that is simple, portable, and efficient.
23283
# So, we kill variables containing newlines.
23284
# Ultrix sh set writes to stderr and can't be redirected directly,
23285
# and sets the high bit in the cache file unless we assign to the vars.
23286
(
23287
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23288
    eval ac_val=\$$ac_var
23289
    case $ac_val in #(
23290
    *${as_nl}*)
23291
      case $ac_var in #(
23292
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23293
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23294
      esac
23295
      case $ac_var in #(
23296
      _ | IFS | as_nl) ;; #(
23297
      *) $as_unset $ac_var ;;
23298
      esac ;;
23299
    esac
23300
  done
23301
23302
  (set) 2>&1 |
23303
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23304
    *${as_nl}ac_space=\ *)
23305
      # `set' does not quote correctly, so add quotes (double-quote
23306
      # substitution turns \\\\ into \\, and sed turns \\ into \).
23307
      sed -n \
23308
	"s/'/'\\\\''/g;
23309
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23310
      ;; #(
23311
    *)
23312
      # `set' quotes correctly as required by POSIX, so do not add quotes.
23313
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23314
      ;;
23315
    esac |
23316
    sort
23317
) |
23318
  sed '
23319
     /^ac_cv_env_/b end
23320
     t clear
23321
     :clear
23322
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23323
     t end
23324
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23325
     :end' >>confcache
23326
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23327
  if test -w "$cache_file"; then
23328
    test "x$cache_file" != "x/dev/null" &&
23329
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23330
echo "$as_me: updating cache $cache_file" >&6;}
23331
    cat confcache >$cache_file
23332
  else
23333
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23334
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23335
  fi
23336
fi
23337
rm -f confcache
23338
23339
test "x$prefix" = xNONE && prefix=$ac_default_prefix
23340
# Let make expand exec_prefix.
23341
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23342
23343
DEFS=-DHAVE_CONFIG_H
23344
23345
ac_libobjs=
23346
ac_ltlibobjs=
23347
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23348
  # 1. Remove the extension, and $U if already installed.
23349
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23350
  ac_i=`echo "$ac_i" | sed "$ac_script"`
23351
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23352
  #    will be set to the directory where LIBOBJS objects are built.
23353
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23354
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23355
done
23356
LIBOBJS=$ac_libobjs
23357
23358
LTLIBOBJS=$ac_ltlibobjs
23359
23360
23361
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23362
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23363
Usually this means the macro was only invoked conditionally." >&5
23364
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23365
Usually this means the macro was only invoked conditionally." >&2;}
23366
   { (exit 1); exit 1; }; }
23367
fi
23368
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23369
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23370
Usually this means the macro was only invoked conditionally." >&5
23371
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23372
Usually this means the macro was only invoked conditionally." >&2;}
23373
   { (exit 1); exit 1; }; }
23374
fi
23375
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23376
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23377
Usually this means the macro was only invoked conditionally." >&5
23378
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23379
Usually this means the macro was only invoked conditionally." >&2;}
23380
   { (exit 1); exit 1; }; }
23381
fi
23382
23383
  ac_config_commands="$ac_config_commands po/stamp-it"
23384
23385
23386
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23387
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23388
Usually this means the macro was only invoked conditionally." >&5
23389
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23390
Usually this means the macro was only invoked conditionally." >&2;}
23391
   { (exit 1); exit 1; }; }
23392
fi
23393
if test -z "${COMPIL_VERBOSE_TRUE}" && test -z "${COMPIL_VERBOSE_FALSE}"; then
23394
  { { echo "$as_me:$LINENO: error: conditional \"COMPIL_VERBOSE\" was never defined.
23395
Usually this means the macro was only invoked conditionally." >&5
23396
echo "$as_me: error: conditional \"COMPIL_VERBOSE\" was never defined.
23397
Usually this means the macro was only invoked conditionally." >&2;}
23398
   { (exit 1); exit 1; }; }
23399
fi
23400
if test -z "${COMPIL_WITH_GLITZ_TRUE}" && test -z "${COMPIL_WITH_GLITZ_FALSE}"; then
23401
  { { echo "$as_me:$LINENO: error: conditional \"COMPIL_WITH_GLITZ\" was never defined.
23402
Usually this means the macro was only invoked conditionally." >&5
23403
echo "$as_me: error: conditional \"COMPIL_WITH_GLITZ\" was never defined.
23404
Usually this means the macro was only invoked conditionally." >&2;}
23405
   { (exit 1); exit 1; }; }
23406
fi
23407
23408
: ${CONFIG_STATUS=./config.status}
23409
ac_clean_files_save=$ac_clean_files
23410
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23411
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23412
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23413
cat >$CONFIG_STATUS <<_ACEOF
23414
#! $SHELL
23415
# Generated by $as_me.
23416
# Run this file to recreate the current configuration.
23417
# Compiler output produced by configure, useful for debugging
23418
# configure, is in config.log if it exists.
23419
23420
debug=false
23421
ac_cs_recheck=false
23422
ac_cs_silent=false
23423
SHELL=\${CONFIG_SHELL-$SHELL}
23424
_ACEOF
23425
23426
cat >>$CONFIG_STATUS <<\_ACEOF
23427
## --------------------- ##
23428
## M4sh Initialization.  ##
23429
## --------------------- ##
23430
23431
# Be more Bourne compatible
23432
DUALCASE=1; export DUALCASE # for MKS sh
23433
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23434
  emulate sh
23435
  NULLCMD=:
23436
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23437
  # is contrary to our usage.  Disable this feature.
23438
  alias -g '${1+"$@"}'='"$@"'
23439
  setopt NO_GLOB_SUBST
23440
else
23441
  case `(set -o) 2>/dev/null` in
23442
  *posix*) set -o posix ;;
23443
esac
23444
23445
fi
23446
23447
23448
23449
23450
# PATH needs CR
23451
# Avoid depending upon Character Ranges.
23452
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23453
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23454
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23455
as_cr_digits='0123456789'
23456
as_cr_alnum=$as_cr_Letters$as_cr_digits
23457
23458
# The user is always right.
23459
if test "${PATH_SEPARATOR+set}" != set; then
23460
  echo "#! /bin/sh" >conf$$.sh
23461
  echo  "exit 0"   >>conf$$.sh
23462
  chmod +x conf$$.sh
23463
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23464
    PATH_SEPARATOR=';'
23465
  else
23466
    PATH_SEPARATOR=:
23467
  fi
23468
  rm -f conf$$.sh
23469
fi
23470
23471
# Support unset when possible.
23472
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23473
  as_unset=unset
23474
else
23475
  as_unset=false
23476
fi
23477
23478
23479
# IFS
23480
# We need space, tab and new line, in precisely that order.  Quoting is
23481
# there to prevent editors from complaining about space-tab.
23482
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23483
# splitting by setting IFS to empty value.)
23484
as_nl='
23485
'
23486
IFS=" ""	$as_nl"
23487
23488
# Find who we are.  Look in the path if we contain no directory separator.
23489
case $0 in
23490
  *[\\/]* ) as_myself=$0 ;;
23491
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23492
for as_dir in $PATH
23493
do
23494
  IFS=$as_save_IFS
23495
  test -z "$as_dir" && as_dir=.
23496
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23497
done
23498
IFS=$as_save_IFS
23499
23500
     ;;
23501
esac
23502
# We did not find ourselves, most probably we were run as `sh COMMAND'
23503
# in which case we are not to be found in the path.
23504
if test "x$as_myself" = x; then
23505
  as_myself=$0
23506
fi
23507
if test ! -f "$as_myself"; then
23508
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23509
  { (exit 1); exit 1; }
23510
fi
23511
23512
# Work around bugs in pre-3.0 UWIN ksh.
23513
for as_var in ENV MAIL MAILPATH
23514
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23515
done
23516
PS1='$ '
23517
PS2='> '
23518
PS4='+ '
23519
23520
# NLS nuisances.
23521
for as_var in \
23522
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23523
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23524
  LC_TELEPHONE LC_TIME
23525
do
23526
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23527
    eval $as_var=C; export $as_var
23528
  else
23529
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23530
  fi
23531
done
23532
23533
# Required to use basename.
23534
if expr a : '\(a\)' >/dev/null 2>&1 &&
23535
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23536
  as_expr=expr
23537
else
23538
  as_expr=false
23539
fi
23540
23541
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23542
  as_basename=basename
23543
else
23544
  as_basename=false
23545
fi
23546
23547
23548
# Name of the executable.
23549
as_me=`$as_basename -- "$0" ||
23550
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23551
	 X"$0" : 'X\(//\)$' \| \
23552
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23553
echo X/"$0" |
23554
    sed '/^.*\/\([^/][^/]*\)\/*$/{
23555
	    s//\1/
23556
	    q
23557
	  }
23558
	  /^X\/\(\/\/\)$/{
23559
	    s//\1/
23560
	    q
23561
	  }
23562
	  /^X\/\(\/\).*/{
23563
	    s//\1/
23564
	    q
23565
	  }
23566
	  s/.*/./; q'`
23567
23568
# CDPATH.
23569
$as_unset CDPATH
23570
23571
23572
23573
  as_lineno_1=$LINENO
23574
  as_lineno_2=$LINENO
23575
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23576
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23577
23578
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23579
  # uniformly replaced by the line number.  The first 'sed' inserts a
23580
  # line-number line after each line using $LINENO; the second 'sed'
23581
  # does the real work.  The second script uses 'N' to pair each
23582
  # line-number line with the line containing $LINENO, and appends
23583
  # trailing '-' during substitution so that $LINENO is not a special
23584
  # case at line end.
23585
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23586
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23587
  # E. McMahon (1931-1989) for sed's syntax.  :-)
23588
  sed -n '
23589
    p
23590
    /[$]LINENO/=
23591
  ' <$as_myself |
23592
    sed '
23593
      s/[$]LINENO.*/&-/
23594
      t lineno
23595
      b
23596
      :lineno
23597
      N
23598
      :loop
23599
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23600
      t loop
23601
      s/-\n.*//
23602
    ' >$as_me.lineno &&
23603
  chmod +x "$as_me.lineno" ||
23604
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23605
   { (exit 1); exit 1; }; }
23606
23607
  # Don't try to exec as it changes $[0], causing all sort of problems
23608
  # (the dirname of $[0] is not the place where we might find the
23609
  # original and so on.  Autoconf is especially sensitive to this).
23610
  . "./$as_me.lineno"
23611
  # Exit status is that of the last command.
23612
  exit
23613
}
23614
23615
23616
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23617
  as_dirname=dirname
23618
else
23619
  as_dirname=false
23620
fi
23621
23622
ECHO_C= ECHO_N= ECHO_T=
23623
case `echo -n x` in
23624
-n*)
23625
  case `echo 'x\c'` in
23626
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23627
  *)   ECHO_C='\c';;
23628
  esac;;
23629
*)
23630
  ECHO_N='-n';;
23631
esac
23632
23633
if expr a : '\(a\)' >/dev/null 2>&1 &&
23634
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23635
  as_expr=expr
23636
else
23637
  as_expr=false
23638
fi
23639
23640
rm -f conf$$ conf$$.exe conf$$.file
23641
if test -d conf$$.dir; then
23642
  rm -f conf$$.dir/conf$$.file
23643
else
23644
  rm -f conf$$.dir
23645
  mkdir conf$$.dir
23646
fi
23647
echo >conf$$.file
23648
if ln -s conf$$.file conf$$ 2>/dev/null; then
23649
  as_ln_s='ln -s'
23650
  # ... but there are two gotchas:
23651
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23652
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23653
  # In both cases, we have to default to `cp -p'.
23654
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23655
    as_ln_s='cp -p'
23656
elif ln conf$$.file conf$$ 2>/dev/null; then
23657
  as_ln_s=ln
23658
else
23659
  as_ln_s='cp -p'
23660
fi
23661
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23662
rmdir conf$$.dir 2>/dev/null
23663
23664
if mkdir -p . 2>/dev/null; then
23665
  as_mkdir_p=:
23666
else
23667
  test -d ./-p && rmdir ./-p
23668
  as_mkdir_p=false
23669
fi
23670
23671
if test -x / >/dev/null 2>&1; then
23672
  as_test_x='test -x'
23673
else
23674
  if ls -dL / >/dev/null 2>&1; then
23675
    as_ls_L_option=L
23676
  else
23677
    as_ls_L_option=
23678
  fi
23679
  as_test_x='
23680
    eval sh -c '\''
23681
      if test -d "$1"; then
23682
        test -d "$1/.";
23683
      else
23684
	case $1 in
23685
        -*)set "./$1";;
23686
	esac;
23687
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23688
	???[sx]*):;;*)false;;esac;fi
23689
    '\'' sh
23690
  '
23691
fi
23692
as_executable_p=$as_test_x
23693
23694
# Sed expression to map a string onto a valid CPP name.
23695
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23696
23697
# Sed expression to map a string onto a valid variable name.
23698
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23699
23700
23701
exec 6>&1
23702
23703
# Save the log message, to keep $[0] and so on meaningful, and to
23704
# report actual input values of CONFIG_FILES etc. instead of their
23705
# values after options handling.
23706
ac_log="
23707
This file was extended by cairo-dock $as_me 1.5.6-alpha0, which was
23708
generated by GNU Autoconf 2.61.  Invocation command line was
23709
23710
  CONFIG_FILES    = $CONFIG_FILES
23711
  CONFIG_HEADERS  = $CONFIG_HEADERS
23712
  CONFIG_LINKS    = $CONFIG_LINKS
23713
  CONFIG_COMMANDS = $CONFIG_COMMANDS
23714
  $ $0 $@
23715
23716
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23717
"
23718
23719
_ACEOF
23720
23721
cat >>$CONFIG_STATUS <<_ACEOF
23722
# Files that config.status was made for.
23723
config_files="$ac_config_files"
23724
config_headers="$ac_config_headers"
23725
config_commands="$ac_config_commands"
23726
23727
_ACEOF
23728
23729
cat >>$CONFIG_STATUS <<\_ACEOF
23730
ac_cs_usage="\
23731
\`$as_me' instantiates files from templates according to the
23732
current configuration.
23733
23734
Usage: $0 [OPTIONS] [FILE]...
23735
23736
  -h, --help       print this help, then exit
23737
  -V, --version    print version number and configuration settings, then exit
23738
  -q, --quiet      do not print progress messages
23739
  -d, --debug      don't remove temporary files
23740
      --recheck    update $as_me by reconfiguring in the same conditions
23741
  --file=FILE[:TEMPLATE]
23742
		   instantiate the configuration file FILE
23743
  --header=FILE[:TEMPLATE]
23744
		   instantiate the configuration header FILE
23745
23746
Configuration files:
23747
$config_files
23748
23749
Configuration headers:
23750
$config_headers
23751
23752
Configuration commands:
23753
$config_commands
23754
23755
Report bugs to <bug-autoconf@gnu.org>."
23756
23757
_ACEOF
23758
cat >>$CONFIG_STATUS <<_ACEOF
23759
ac_cs_version="\\
23760
cairo-dock config.status 1.5.6-alpha0
23761
configured by $0, generated by GNU Autoconf 2.61,
23762
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23763
23764
Copyright (C) 2006 Free Software Foundation, Inc.
23765
This config.status script is free software; the Free Software Foundation
23766
gives unlimited permission to copy, distribute and modify it."
23767
23768
ac_pwd='$ac_pwd'
23769
srcdir='$srcdir'
23770
INSTALL='$INSTALL'
23771
MKDIR_P='$MKDIR_P'
23772
_ACEOF
23773
23774
cat >>$CONFIG_STATUS <<\_ACEOF
23775
# If no file are specified by the user, then we need to provide default
23776
# value.  By we need to know if files were specified by the user.
23777
ac_need_defaults=:
23778
while test $# != 0
23779
do
23780
  case $1 in
23781
  --*=*)
23782
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23783
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23784
    ac_shift=:
23785
    ;;
23786
  *)
23787
    ac_option=$1
23788
    ac_optarg=$2
23789
    ac_shift=shift
23790
    ;;
23791
  esac
23792
23793
  case $ac_option in
23794
  # Handling of the options.
23795
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23796
    ac_cs_recheck=: ;;
23797
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23798
    echo "$ac_cs_version"; exit ;;
23799
  --debug | --debu | --deb | --de | --d | -d )
23800
    debug=: ;;
23801
  --file | --fil | --fi | --f )
23802
    $ac_shift
23803
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23804
    ac_need_defaults=false;;
23805
  --header | --heade | --head | --hea )
23806
    $ac_shift
23807
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23808
    ac_need_defaults=false;;
23809
  --he | --h)
23810
    # Conflict between --help and --header
23811
    { echo "$as_me: error: ambiguous option: $1
23812
Try \`$0 --help' for more information." >&2
23813
   { (exit 1); exit 1; }; };;
23814
  --help | --hel | -h )
23815
    echo "$ac_cs_usage"; exit ;;
23816
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23817
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23818
    ac_cs_silent=: ;;
23819
23820
  # This is an error.
23821
  -*) { echo "$as_me: error: unrecognized option: $1
23822
Try \`$0 --help' for more information." >&2
23823
   { (exit 1); exit 1; }; } ;;
23824
23825
  *) ac_config_targets="$ac_config_targets $1"
23826
     ac_need_defaults=false ;;
23827
23828
  esac
23829
  shift
23830
done
23831
23832
ac_configure_extra_args=
23833
23834
if $ac_cs_silent; then
23835
  exec 6>/dev/null
23836
  ac_configure_extra_args="$ac_configure_extra_args --silent"
23837
fi
23838
23839
_ACEOF
23840
cat >>$CONFIG_STATUS <<_ACEOF
23841
if \$ac_cs_recheck; then
23842
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23843
  CONFIG_SHELL=$SHELL
23844
  export CONFIG_SHELL
23845
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23846
fi
23847
23848
_ACEOF
23849
cat >>$CONFIG_STATUS <<\_ACEOF
23850
exec 5>>config.log
23851
{
23852
  echo
23853
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23854
## Running $as_me. ##
23855
_ASBOX
23856
  echo "$ac_log"
23857
} >&5
23858
23859
_ACEOF
23860
cat >>$CONFIG_STATUS <<_ACEOF
23861
#
23862
# INIT-COMMANDS
23863
#
23864
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23865
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
23866
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
23867
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
23868
23869
23870
_ACEOF
23871
23872
cat >>$CONFIG_STATUS <<\_ACEOF
23873
23874
# Handling of arguments.
23875
for ac_config_target in $ac_config_targets
23876
do
23877
  case $ac_config_target in
23878
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23879
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23880
    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
23881
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23882
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23883
    "cairo-dock.pc") CONFIG_FILES="$CONFIG_FILES cairo-dock.pc" ;;
23884
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23885
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23886
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23887
    "data/cairo-dock.conf") CONFIG_FILES="$CONFIG_FILES data/cairo-dock.conf" ;;
23888
    "data/main-dock.conf") CONFIG_FILES="$CONFIG_FILES data/main-dock.conf" ;;
23889
    "data/default-theme/Makefile") CONFIG_FILES="$CONFIG_FILES data/default-theme/Makefile" ;;
23890
    "data/default-theme/launchers/Makefile") CONFIG_FILES="$CONFIG_FILES data/default-theme/launchers/Makefile" ;;
23891
    "data/gauges/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/Makefile" ;;
23892
    "data/gauges/radium/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/radium/Makefile" ;;
23893
    "data/gauges/radium-fuel/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/radium-fuel/Makefile" ;;
23894
    "data/gauges/battery/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/battery/Makefile" ;;
23895
    "data/gauges/old-square/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/old-square/Makefile" ;;
23896
    "data/gauges/turbo-night/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/turbo-night/Makefile" ;;
23897
    "data/gauges/turbo-night-fuel/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/turbo-night-fuel/Makefile" ;;
23898
    "data/gauges/turbo-night-dual/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/turbo-night-dual/Makefile" ;;
23899
    "data/gauges/rainbow/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/rainbow/Makefile" ;;
23900
    "data/gauges/tomato/Makefile") CONFIG_FILES="$CONFIG_FILES data/gauges/tomato/Makefile" ;;
23901
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23902
23903
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23904
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23905
   { (exit 1); exit 1; }; };;
23906
  esac
23907
done
23908
23909
23910
# If the user did not use the arguments to specify the items to instantiate,
23911
# then the envvar interface is used.  Set only those that are not.
23912
# We use the long form for the default assignment because of an extremely
23913
# bizarre bug on SunOS 4.1.3.
23914
if $ac_need_defaults; then
23915
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23916
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23917
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23918
fi
23919
23920
# Have a temporary directory for convenience.  Make it in the build tree
23921
# simply because there is no reason against having it here, and in addition,
23922
# creating and moving files from /tmp can sometimes cause problems.
23923
# Hook for its removal unless debugging.
23924
# Note that there is a small window in which the directory will not be cleaned:
23925
# after its creation but before its name has been assigned to `$tmp'.
23926
$debug ||
23927
{
23928
  tmp=
23929
  trap 'exit_status=$?
23930
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23931
' 0
23932
  trap '{ (exit 1); exit 1; }' 1 2 13 15
23933
}
23934
# Create a (secure) tmp directory for tmp files.
23935
23936
{
23937
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23938
  test -n "$tmp" && test -d "$tmp"
23939
}  ||
23940
{
23941
  tmp=./conf$$-$RANDOM
23942
  (umask 077 && mkdir "$tmp")
23943
} ||
23944
{
23945
   echo "$me: cannot create a temporary directory in ." >&2
23946
   { (exit 1); exit 1; }
23947
}
23948
23949
#
23950
# Set up the sed scripts for CONFIG_FILES section.
23951
#
23952
23953
# No need to generate the scripts if there are no CONFIG_FILES.
23954
# This happens for instance when ./config.status config.h
23955
if test -n "$CONFIG_FILES"; then
23956
23957
_ACEOF
23958
23959
23960
23961
ac_delim='%!_!# '
23962
for ac_last_try in false false false false false :; do
23963
  cat >conf$$subs.sed <<_ACEOF
23964
SHELL!$SHELL$ac_delim
23965
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23966
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23967
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23968
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23969
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23970
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23971
exec_prefix!$exec_prefix$ac_delim
23972
prefix!$prefix$ac_delim
23973
program_transform_name!$program_transform_name$ac_delim
23974
bindir!$bindir$ac_delim
23975
sbindir!$sbindir$ac_delim
23976
libexecdir!$libexecdir$ac_delim
23977
datarootdir!$datarootdir$ac_delim
23978
datadir!$datadir$ac_delim
23979
sysconfdir!$sysconfdir$ac_delim
23980
sharedstatedir!$sharedstatedir$ac_delim
23981
localstatedir!$localstatedir$ac_delim
23982
includedir!$includedir$ac_delim
23983
oldincludedir!$oldincludedir$ac_delim
23984
docdir!$docdir$ac_delim
23985
infodir!$infodir$ac_delim
23986
htmldir!$htmldir$ac_delim
23987
dvidir!$dvidir$ac_delim
23988
pdfdir!$pdfdir$ac_delim
23989
psdir!$psdir$ac_delim
23990
libdir!$libdir$ac_delim
23991
localedir!$localedir$ac_delim
23992
mandir!$mandir$ac_delim
23993
DEFS!$DEFS$ac_delim
23994
ECHO_C!$ECHO_C$ac_delim
23995
ECHO_N!$ECHO_N$ac_delim
23996
ECHO_T!$ECHO_T$ac_delim
23997
LIBS!$LIBS$ac_delim
23998
build_alias!$build_alias$ac_delim
23999
host_alias!$host_alias$ac_delim
24000
target_alias!$target_alias$ac_delim
24001
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24002
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24003
INSTALL_DATA!$INSTALL_DATA$ac_delim
24004
am__isrc!$am__isrc$ac_delim
24005
CYGPATH_W!$CYGPATH_W$ac_delim
24006
PACKAGE!$PACKAGE$ac_delim
24007
VERSION!$VERSION$ac_delim
24008
ACLOCAL!$ACLOCAL$ac_delim
24009
AUTOCONF!$AUTOCONF$ac_delim
24010
AUTOMAKE!$AUTOMAKE$ac_delim
24011
AUTOHEADER!$AUTOHEADER$ac_delim
24012
MAKEINFO!$MAKEINFO$ac_delim
24013
install_sh!$install_sh$ac_delim
24014
STRIP!$STRIP$ac_delim
24015
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24016
mkdir_p!$mkdir_p$ac_delim
24017
AWK!$AWK$ac_delim
24018
SET_MAKE!$SET_MAKE$ac_delim
24019
am__leading_dot!$am__leading_dot$ac_delim
24020
AMTAR!$AMTAR$ac_delim
24021
am__tar!$am__tar$ac_delim
24022
am__untar!$am__untar$ac_delim
24023
build!$build$ac_delim
24024
build_cpu!$build_cpu$ac_delim
24025
build_vendor!$build_vendor$ac_delim
24026
build_os!$build_os$ac_delim
24027
host!$host$ac_delim
24028
host_cpu!$host_cpu$ac_delim
24029
host_vendor!$host_vendor$ac_delim
24030
host_os!$host_os$ac_delim
24031
CC!$CC$ac_delim
24032
CFLAGS!$CFLAGS$ac_delim
24033
LDFLAGS!$LDFLAGS$ac_delim
24034
CPPFLAGS!$CPPFLAGS$ac_delim
24035
ac_ct_CC!$ac_ct_CC$ac_delim
24036
EXEEXT!$EXEEXT$ac_delim
24037
OBJEXT!$OBJEXT$ac_delim
24038
DEPDIR!$DEPDIR$ac_delim
24039
am__include!$am__include$ac_delim
24040
am__quote!$am__quote$ac_delim
24041
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24042
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24043
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24044
CCDEPMODE!$CCDEPMODE$ac_delim
24045
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24046
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24047
SED!$SED$ac_delim
24048
GREP!$GREP$ac_delim
24049
EGREP!$EGREP$ac_delim
24050
LN_S!$LN_S$ac_delim
24051
ECHO!$ECHO$ac_delim
24052
AR!$AR$ac_delim
24053
RANLIB!$RANLIB$ac_delim
24054
DSYMUTIL!$DSYMUTIL$ac_delim
24055
NMEDIT!$NMEDIT$ac_delim
24056
CPP!$CPP$ac_delim
24057
CXX!$CXX$ac_delim
24058
CXXFLAGS!$CXXFLAGS$ac_delim
24059
ac_ct_CXX!$ac_ct_CXX$ac_delim
24060
CXXDEPMODE!$CXXDEPMODE$ac_delim
24061
_ACEOF
24062
24063
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24064
    break
24065
  elif $ac_last_try; then
24066
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24067
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24068
   { (exit 1); exit 1; }; }
24069
  else
24070
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24071
  fi
24072
done
24073
24074
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24075
if test -n "$ac_eof"; then
24076
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24077
  ac_eof=`expr $ac_eof + 1`
24078
fi
24079
24080
cat >>$CONFIG_STATUS <<_ACEOF
24081
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24082
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24083
_ACEOF
24084
sed '
24085
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24086
s/^/s,@/; s/!/@,|#_!!_#|/
24087
:n
24088
t n
24089
s/'"$ac_delim"'$/,g/; t
24090
s/$/\\/; p
24091
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24092
' >>$CONFIG_STATUS <conf$$subs.sed
24093
rm -f conf$$subs.sed
24094
cat >>$CONFIG_STATUS <<_ACEOF
24095
CEOF$ac_eof
24096
_ACEOF
24097
24098
24099
ac_delim='%!_!# '
24100
for ac_last_try in false false false false false :; do
24101
  cat >conf$$subs.sed <<_ACEOF
24102
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24103
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24104
CXXCPP!$CXXCPP$ac_delim
24105
F77!$F77$ac_delim
24106
FFLAGS!$FFLAGS$ac_delim
24107
ac_ct_F77!$ac_ct_F77$ac_delim
24108
LIBTOOL!$LIBTOOL$ac_delim
24109
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
24110
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
24111
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
24112
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
24113
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
24114
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
24115
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
24116
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
24117
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
24118
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
24119
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
24120
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
24121
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
24122
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
24123
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
24124
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
24125
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
24126
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
24127
INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
24128
XGETTEXT!$XGETTEXT$ac_delim
24129
MSGMERGE!$MSGMERGE$ac_delim
24130
MSGFMT!$MSGFMT$ac_delim
24131
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
24132
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
24133
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
24134
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
24135
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
24136
DATADIRNAME!$DATADIRNAME$ac_delim
24137
USE_NLS!$USE_NLS$ac_delim
24138
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
24139
GMSGFMT!$GMSGFMT$ac_delim
24140
CATALOGS!$CATALOGS$ac_delim
24141
CATOBJEXT!$CATOBJEXT$ac_delim
24142
GMOFILES!$GMOFILES$ac_delim
24143
INSTOBJEXT!$INSTOBJEXT$ac_delim
24144
INTLLIBS!$INTLLIBS$ac_delim
24145
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
24146
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
24147
POFILES!$POFILES$ac_delim
24148
POSUB!$POSUB$ac_delim
24149
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24150
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24151
COMPIL_VERBOSE_TRUE!$COMPIL_VERBOSE_TRUE$ac_delim
24152
COMPIL_VERBOSE_FALSE!$COMPIL_VERBOSE_FALSE$ac_delim
24153
COMPIL_WITH_GLITZ_TRUE!$COMPIL_WITH_GLITZ_TRUE$ac_delim
24154
COMPIL_WITH_GLITZ_FALSE!$COMPIL_WITH_GLITZ_FALSE$ac_delim
24155
PKG_CONFIG!$PKG_CONFIG$ac_delim
24156
PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
24157
PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
24158
GLITZ_CFLAGS!$GLITZ_CFLAGS$ac_delim
24159
GLITZ_LIBS!$GLITZ_LIBS$ac_delim
24160
LIBOBJS!$LIBOBJS$ac_delim
24161
LTLIBOBJS!$LTLIBOBJS$ac_delim
24162
_ACEOF
24163
24164
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
24165
    break
24166
  elif $ac_last_try; then
24167
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24168
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24169
   { (exit 1); exit 1; }; }
24170
  else
24171
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24172
  fi
24173
done
24174
24175
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24176
if test -n "$ac_eof"; then
24177
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24178
  ac_eof=`expr $ac_eof + 1`
24179
fi
24180
24181
cat >>$CONFIG_STATUS <<_ACEOF
24182
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24183
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24184
_ACEOF
24185
sed '
24186
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24187
s/^/s,@/; s/!/@,|#_!!_#|/
24188
:n
24189
t n
24190
s/'"$ac_delim"'$/,g/; t
24191
s/$/\\/; p
24192
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24193
' >>$CONFIG_STATUS <conf$$subs.sed
24194
rm -f conf$$subs.sed
24195
cat >>$CONFIG_STATUS <<_ACEOF
24196
:end
24197
s/|#_!!_#|//g
24198
CEOF$ac_eof
24199
_ACEOF
24200
24201
24202
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24203
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24204
# trailing colons and then remove the whole line if VPATH becomes empty
24205
# (actually we leave an empty line to preserve line numbers).
24206
if test "x$srcdir" = x.; then
24207
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24208
s/:*\$(srcdir):*/:/
24209
s/:*\${srcdir}:*/:/
24210
s/:*@srcdir@:*/:/
24211
s/^\([^=]*=[	 ]*\):*/\1/
24212
s/:*$//
24213
s/^[^=]*=[	 ]*$//
24214
}'
24215
fi
24216
24217
cat >>$CONFIG_STATUS <<\_ACEOF
24218
fi # test -n "$CONFIG_FILES"
24219
24220
24221
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24222
do
24223
  case $ac_tag in
24224
  :[FHLC]) ac_mode=$ac_tag; continue;;
24225
  esac
24226
  case $ac_mode$ac_tag in
24227
  :[FHL]*:*);;
24228
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24229
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24230
   { (exit 1); exit 1; }; };;
24231
  :[FH]-) ac_tag=-:-;;
24232
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24233
  esac
24234
  ac_save_IFS=$IFS
24235
  IFS=:
24236
  set x $ac_tag
24237
  IFS=$ac_save_IFS
24238
  shift
24239
  ac_file=$1
24240
  shift
24241
24242
  case $ac_mode in
24243
  :L) ac_source=$1;;
24244
  :[FH])
24245
    ac_file_inputs=
24246
    for ac_f
24247
    do
24248
      case $ac_f in
24249
      -) ac_f="$tmp/stdin";;
24250
      *) # Look for the file first in the build tree, then in the source tree
24251
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24252
	 # because $ac_f cannot contain `:'.
24253
	 test -f "$ac_f" ||
24254
	   case $ac_f in
24255
	   [\\/$]*) false;;
24256
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24257
	   esac ||
24258
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24259
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24260
   { (exit 1); exit 1; }; };;
24261
      esac
24262
      ac_file_inputs="$ac_file_inputs $ac_f"
24263
    done
24264
24265
    # Let's still pretend it is `configure' which instantiates (i.e., don't
24266
    # use $as_me), people would be surprised to read:
24267
    #    /* config.h.  Generated by config.status.  */
24268
    configure_input="Generated from "`IFS=:
24269
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24270
    if test x"$ac_file" != x-; then
24271
      configure_input="$ac_file.  $configure_input"
24272
      { echo "$as_me:$LINENO: creating $ac_file" >&5
24273
echo "$as_me: creating $ac_file" >&6;}
24274
    fi
24275
24276
    case $ac_tag in
24277
    *:-:* | *:-) cat >"$tmp/stdin";;
24278
    esac
24279
    ;;
24280
  esac
24281
24282
  ac_dir=`$as_dirname -- "$ac_file" ||
24283
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24284
	 X"$ac_file" : 'X\(//\)[^/]' \| \
24285
	 X"$ac_file" : 'X\(//\)$' \| \
24286
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24287
echo X"$ac_file" |
24288
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24289
	    s//\1/
24290
	    q
24291
	  }
24292
	  /^X\(\/\/\)[^/].*/{
24293
	    s//\1/
24294
	    q
24295
	  }
24296
	  /^X\(\/\/\)$/{
24297
	    s//\1/
24298
	    q
24299
	  }
24300
	  /^X\(\/\).*/{
24301
	    s//\1/
24302
	    q
24303
	  }
24304
	  s/.*/./; q'`
24305
  { as_dir="$ac_dir"
24306
  case $as_dir in #(
24307
  -*) as_dir=./$as_dir;;
24308
  esac
24309
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24310
    as_dirs=
24311
    while :; do
24312
      case $as_dir in #(
24313
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24314
      *) as_qdir=$as_dir;;
24315
      esac
24316
      as_dirs="'$as_qdir' $as_dirs"
24317
      as_dir=`$as_dirname -- "$as_dir" ||
24318
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24319
	 X"$as_dir" : 'X\(//\)[^/]' \| \
24320
	 X"$as_dir" : 'X\(//\)$' \| \
24321
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24322
echo X"$as_dir" |
24323
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24324
	    s//\1/
24325
	    q
24326
	  }
24327
	  /^X\(\/\/\)[^/].*/{
24328
	    s//\1/
24329
	    q
24330
	  }
24331
	  /^X\(\/\/\)$/{
24332
	    s//\1/
24333
	    q
24334
	  }
24335
	  /^X\(\/\).*/{
24336
	    s//\1/
24337
	    q
24338
	  }
24339
	  s/.*/./; q'`
24340
      test -d "$as_dir" && break
24341
    done
24342
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24343
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24344
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24345
   { (exit 1); exit 1; }; }; }
24346
  ac_builddir=.
24347
24348
case "$ac_dir" in
24349
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24350
*)
24351
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24352
  # A ".." for each directory in $ac_dir_suffix.
24353
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24354
  case $ac_top_builddir_sub in
24355
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24356
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24357
  esac ;;
24358
esac
24359
ac_abs_top_builddir=$ac_pwd
24360
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24361
# for backward compatibility:
24362
ac_top_builddir=$ac_top_build_prefix
24363
24364
case $srcdir in
24365
  .)  # We are building in place.
24366
    ac_srcdir=.
24367
    ac_top_srcdir=$ac_top_builddir_sub
24368
    ac_abs_top_srcdir=$ac_pwd ;;
24369
  [\\/]* | ?:[\\/]* )  # Absolute name.
24370
    ac_srcdir=$srcdir$ac_dir_suffix;
24371
    ac_top_srcdir=$srcdir
24372
    ac_abs_top_srcdir=$srcdir ;;
24373
  *) # Relative name.
24374
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24375
    ac_top_srcdir=$ac_top_build_prefix$srcdir
24376
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24377
esac
24378
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24379
24380
24381
  case $ac_mode in
24382
  :F)
24383
  #
24384
  # CONFIG_FILE
24385
  #
24386
24387
  case $INSTALL in
24388
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24389
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24390
  esac
24391
  ac_MKDIR_P=$MKDIR_P
24392
  case $MKDIR_P in
24393
  [\\/$]* | ?:[\\/]* ) ;;
24394
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24395
  esac
24396
_ACEOF
24397
24398
cat >>$CONFIG_STATUS <<\_ACEOF
24399
# If the template does not know about datarootdir, expand it.
24400
# FIXME: This hack should be removed a few years after 2.60.
24401
ac_datarootdir_hack=; ac_datarootdir_seen=
24402
24403
case `sed -n '/datarootdir/ {
24404
  p
24405
  q
24406
}
24407
/@datadir@/p
24408
/@docdir@/p
24409
/@infodir@/p
24410
/@localedir@/p
24411
/@mandir@/p
24412
' $ac_file_inputs` in
24413
*datarootdir*) ac_datarootdir_seen=yes;;
24414
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24415
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24416
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24417
_ACEOF
24418
cat >>$CONFIG_STATUS <<_ACEOF
24419
  ac_datarootdir_hack='
24420
  s&@datadir@&$datadir&g
24421
  s&@docdir@&$docdir&g
24422
  s&@infodir@&$infodir&g
24423
  s&@localedir@&$localedir&g
24424
  s&@mandir@&$mandir&g
24425
    s&\\\${datarootdir}&$datarootdir&g' ;;
24426
esac
24427
_ACEOF
24428
24429
# Neutralize VPATH when `$srcdir' = `.'.
24430
# Shell code in configure.ac might set extrasub.
24431
# FIXME: do we really want to maintain this feature?
24432
cat >>$CONFIG_STATUS <<_ACEOF
24433
  sed "$ac_vpsub
24434
$extrasub
24435
_ACEOF
24436
cat >>$CONFIG_STATUS <<\_ACEOF
24437
:t
24438
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24439
s&@configure_input@&$configure_input&;t t
24440
s&@top_builddir@&$ac_top_builddir_sub&;t t
24441
s&@srcdir@&$ac_srcdir&;t t
24442
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24443
s&@top_srcdir@&$ac_top_srcdir&;t t
24444
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24445
s&@builddir@&$ac_builddir&;t t
24446
s&@abs_builddir@&$ac_abs_builddir&;t t
24447
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24448
s&@INSTALL@&$ac_INSTALL&;t t
24449
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24450
$ac_datarootdir_hack
24451
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24452
24453
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24454
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24455
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24456
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24457
which seems to be undefined.  Please make sure it is defined." >&5
24458
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24459
which seems to be undefined.  Please make sure it is defined." >&2;}
24460
24461
  rm -f "$tmp/stdin"
24462
  case $ac_file in
24463
  -) cat "$tmp/out"; rm -f "$tmp/out";;
24464
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24465
  esac
24466
 ;;
24467
  :H)
24468
  #
24469
  # CONFIG_HEADER
24470
  #
24471
_ACEOF
24472
24473
# Transform confdefs.h into a sed script `conftest.defines', that
24474
# substitutes the proper values into config.h.in to produce config.h.
24475
rm -f conftest.defines conftest.tail
24476
# First, append a space to every undef/define line, to ease matching.
24477
echo 's/$/ /' >conftest.defines
24478
# Then, protect against being on the right side of a sed subst, or in
24479
# an unquoted here document, in config.status.  If some macros were
24480
# called several times there might be several #defines for the same
24481
# symbol, which is useless.  But do not sort them, since the last
24482
# AC_DEFINE must be honored.
24483
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24484
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24485
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24486
# PARAMS is the parameter list in the macro definition--in most cases, it's
24487
# just an empty string.
24488
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24489
ac_dB='\\)[	 (].*,\\1define\\2'
24490
ac_dC=' '
24491
ac_dD=' ,'
24492
24493
uniq confdefs.h |
24494
  sed -n '
24495
	t rset
24496
	:rset
24497
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24498
	t ok
24499
	d
24500
	:ok
24501
	s/[\\&,]/\\&/g
24502
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24503
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24504
  ' >>conftest.defines
24505
24506
# Remove the space that was appended to ease matching.
24507
# Then replace #undef with comments.  This is necessary, for
24508
# example, in the case of _POSIX_SOURCE, which is predefined and required
24509
# on some systems where configure will not decide to define it.
24510
# (The regexp can be short, since the line contains either #define or #undef.)
24511
echo 's/ $//
24512
s,^[	 #]*u.*,/* & */,' >>conftest.defines
24513
24514
# Break up conftest.defines:
24515
ac_max_sed_lines=50
24516
24517
# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24518
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24519
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24520
# et cetera.
24521
ac_in='$ac_file_inputs'
24522
ac_out='"$tmp/out1"'
24523
ac_nxt='"$tmp/out2"'
24524
24525
while :
24526
do
24527
  # Write a here document:
24528
    cat >>$CONFIG_STATUS <<_ACEOF
24529
    # First, check the format of the line:
24530
    cat >"\$tmp/defines.sed" <<\\CEOF
24531
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24532
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24533
b
24534
:def
24535
_ACEOF
24536
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24537
  echo 'CEOF
24538
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24539
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24540
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24541
  grep . conftest.tail >/dev/null || break
24542
  rm -f conftest.defines
24543
  mv conftest.tail conftest.defines
24544
done
24545
rm -f conftest.defines conftest.tail
24546
24547
echo "ac_result=$ac_in" >>$CONFIG_STATUS
24548
cat >>$CONFIG_STATUS <<\_ACEOF
24549
  if test x"$ac_file" != x-; then
24550
    echo "/* $configure_input  */" >"$tmp/config.h"
24551
    cat "$ac_result" >>"$tmp/config.h"
24552
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24553
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24554
echo "$as_me: $ac_file is unchanged" >&6;}
24555
    else
24556
      rm -f $ac_file
24557
      mv "$tmp/config.h" $ac_file
24558
    fi
24559
  else
24560
    echo "/* $configure_input  */"
24561
    cat "$ac_result"
24562
  fi
24563
  rm -f "$tmp/out12"
24564
# Compute $ac_file's index in $config_headers.
24565
_am_arg=$ac_file
24566
_am_stamp_count=1
24567
for _am_header in $config_headers :; do
24568
  case $_am_header in
24569
    $_am_arg | $_am_arg:* )
24570
      break ;;
24571
    * )
24572
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24573
  esac
24574
done
24575
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24576
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24577
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24578
	 X"$_am_arg" : 'X\(//\)$' \| \
24579
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24580
echo X"$_am_arg" |
24581
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24582
	    s//\1/
24583
	    q
24584
	  }
24585
	  /^X\(\/\/\)[^/].*/{
24586
	    s//\1/
24587
	    q
24588
	  }
24589
	  /^X\(\/\/\)$/{
24590
	    s//\1/
24591
	    q
24592
	  }
24593
	  /^X\(\/\).*/{
24594
	    s//\1/
24595
	    q
24596
	  }
24597
	  s/.*/./; q'`/stamp-h$_am_stamp_count
24598
 ;;
24599
24600
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24601
echo "$as_me: executing $ac_file commands" >&6;}
24602
 ;;
24603
  esac
24604
24605
24606
  case $ac_file$ac_mode in
24607
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24608
  # Strip MF so we end up with the name of the file.
24609
  mf=`echo "$mf" | sed -e 's/:.*$//'`
24610
  # Check whether this is an Automake generated Makefile or not.
24611
  # We used to match only the files named `Makefile.in', but
24612
  # some people rename them; so instead we look at the file content.
24613
  # Grep'ing the first line is not enough: some people post-process
24614
  # each Makefile.in and add a new line on top of each file to say so.
24615
  # Grep'ing the whole file is not good either: AIX grep has a line
24616
  # limit of 2048, but all sed's we know have understand at least 4000.
24617
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24618
    dirpart=`$as_dirname -- "$mf" ||
24619
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24620
	 X"$mf" : 'X\(//\)[^/]' \| \
24621
	 X"$mf" : 'X\(//\)$' \| \
24622
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24623
echo X"$mf" |
24624
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24625
	    s//\1/
24626
	    q
24627
	  }
24628
	  /^X\(\/\/\)[^/].*/{
24629
	    s//\1/
24630
	    q
24631
	  }
24632
	  /^X\(\/\/\)$/{
24633
	    s//\1/
24634
	    q
24635
	  }
24636
	  /^X\(\/\).*/{
24637
	    s//\1/
24638
	    q
24639
	  }
24640
	  s/.*/./; q'`
24641
  else
24642
    continue
24643
  fi
24644
  # Extract the definition of DEPDIR, am__include, and am__quote
24645
  # from the Makefile without running `make'.
24646
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24647
  test -z "$DEPDIR" && continue
24648
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24649
  test -z "am__include" && continue
24650
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24651
  # When using ansi2knr, U may be empty or an underscore; expand it
24652
  U=`sed -n 's/^U = //p' < "$mf"`
24653
  # Find all dependency output files, they are included files with
24654
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24655
  # simplest approach to changing $(DEPDIR) to its actual value in the
24656
  # expansion.
24657
  for file in `sed -n "
24658
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24659
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24660
    # Make sure the directory exists.
24661
    test -f "$dirpart/$file" && continue
24662
    fdir=`$as_dirname -- "$file" ||
24663
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24664
	 X"$file" : 'X\(//\)[^/]' \| \
24665
	 X"$file" : 'X\(//\)$' \| \
24666
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24667
echo X"$file" |
24668
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24669
	    s//\1/
24670
	    q
24671
	  }
24672
	  /^X\(\/\/\)[^/].*/{
24673
	    s//\1/
24674
	    q
24675
	  }
24676
	  /^X\(\/\/\)$/{
24677
	    s//\1/
24678
	    q
24679
	  }
24680
	  /^X\(\/\).*/{
24681
	    s//\1/
24682
	    q
24683
	  }
24684
	  s/.*/./; q'`
24685
    { as_dir=$dirpart/$fdir
24686
  case $as_dir in #(
24687
  -*) as_dir=./$as_dir;;
24688
  esac
24689
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24690
    as_dirs=
24691
    while :; do
24692
      case $as_dir in #(
24693
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24694
      *) as_qdir=$as_dir;;
24695
      esac
24696
      as_dirs="'$as_qdir' $as_dirs"
24697
      as_dir=`$as_dirname -- "$as_dir" ||
24698
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24699
	 X"$as_dir" : 'X\(//\)[^/]' \| \
24700
	 X"$as_dir" : 'X\(//\)$' \| \
24701
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24702
echo X"$as_dir" |
24703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24704
	    s//\1/
24705
	    q
24706
	  }
24707
	  /^X\(\/\/\)[^/].*/{
24708
	    s//\1/
24709
	    q
24710
	  }
24711
	  /^X\(\/\/\)$/{
24712
	    s//\1/
24713
	    q
24714
	  }
24715
	  /^X\(\/\).*/{
24716
	    s//\1/
24717
	    q
24718
	  }
24719
	  s/.*/./; q'`
24720
      test -d "$as_dir" && break
24721
    done
24722
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24723
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24724
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24725
   { (exit 1); exit 1; }; }; }
24726
    # echo "creating $dirpart/$file"
24727
    echo '# dummy' > "$dirpart/$file"
24728
  done
24729
done
24730
 ;;
24731
    "intltool":C)
24732
24733
for file in intltool-extract intltool-merge intltool-update; do
24734
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
24735
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
24736
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
24737
	< ${ac_aux_dir}/${file}.in > ${file}.out
24738
  if cmp -s ${file} ${file}.out 2>/dev/null; then
24739
    rm -f ${file}.out
24740
  else
24741
    mv -f ${file}.out ${file}
24742
  fi
24743
  chmod ugo+x ${file}
24744
  chmod u+w ${file}
24745
done
24746
24747
 ;;
24748
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
24749
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24750
      esac ;;
24751
    "po/stamp-it":C)
24752
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
24753
    >"po/stamp-it.tmp"
24754
    sed '/^#/d
24755
	 s/^[[].*] *//
24756
	 /^[ 	]*$/d
24757
	'"s|^|	$ac_top_srcdir/|" \
24758
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
24759
24760
    if test ! -f "po/Makefile"; then
24761
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
24762
echo "$as_me: error: po/Makefile is not ready." >&2;}
24763
   { (exit 1); exit 1; }; }
24764
    fi
24765
    mv "po/Makefile" "po/Makefile.tmp"
24766
    sed '/^POTFILES =/,/[^\\]$/ {
24767
		/^POTFILES =/!d
24768
		r po/POTFILES
24769
	  }
24770
	 ' "po/Makefile.tmp" >"po/Makefile"
24771
    rm -f "po/Makefile.tmp"
24772
    mv "po/stamp-it.tmp" "po/stamp-it"
24773
   ;;
24774
24775
  esac
24776
done # for ac_tag
24777
24778
24779
{ (exit 0); exit 0; }
24780
_ACEOF
24781
chmod +x $CONFIG_STATUS
24782
ac_clean_files=$ac_clean_files_save
24783
24784
24785
# configure is writing to config.log, and then calls config.status.
24786
# config.status does its own redirection, appending to config.log.
24787
# Unfortunately, on DOS this fails, as config.log is still kept open
24788
# by configure, so config.status won't be able to write to it; its
24789
# output is simply discarded.  So we exec the FD to /dev/null,
24790
# effectively closing config.log, so it can be properly (re)opened and
24791
# appended to by config.status.  When coming back to configure, we
24792
# need to make the FD available again.
24793
if test "$no_create" != yes; then
24794
  ac_cs_success=:
24795
  ac_config_status_args=
24796
  test "$silent" = yes &&
24797
    ac_config_status_args="$ac_config_status_args --quiet"
24798
  exec 5>/dev/null
24799
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24800
  exec 5>>config.log
24801
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24802
  # would make configure fail if this is the last instruction.
24803
  $ac_cs_success || { (exit 1); exit 1; }
24804
fi
24805