Annotation of rpl/configure, revision 1.77

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.73      bertrand    3: # Generated by GNU Autoconf 2.68 for rpl 4.1.3.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand   92: as_myself=
1.15      bertrand   93: case $0 in #((
1.1       bertrand   94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
1.15      bertrand  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
1.1       bertrand  102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
1.15      bertrand  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
1.1       bertrand  114: fi
                    115: 
1.15      bertrand  116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
1.15      bertrand  129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
1.1       bertrand  133: 
                    134: # CDPATH.
1.15      bertrand  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  136: 
                    137: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  138:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    139:   emulate sh
                    140:   NULLCMD=:
                    141:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    142:   # is contrary to our usage.  Disable this feature.
                    143:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    144:   setopt NO_GLOB_SUBST
1.1       bertrand  145: else
1.15      bertrand  146:   case \`(set -o) 2>/dev/null\` in #(
                    147:   *posix*) :
                    148:     set -o posix ;; #(
                    149:   *) :
                    150:      ;;
                    151: esac
1.1       bertrand  152: fi
1.15      bertrand  153: "
                    154:   as_required="as_fn_return () { (exit \$1); }
                    155: as_fn_success () { as_fn_return 0; }
                    156: as_fn_failure () { as_fn_return 1; }
                    157: as_fn_ret_success () { return 0; }
                    158: as_fn_ret_failure () { return 1; }
1.1       bertrand  159: 
                    160: exitcode=0
1.15      bertrand  161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    166: 
                    167: else
                    168:   exitcode=1; echo positional parameters were not saved.
                    169: fi
                    170: test x\$exitcode = x0 || exit 1"
                    171:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    172:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    173:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    174:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    175: test \$(( 1 + 1 )) = 2 || exit 1"
                    176:   if (eval "$as_required") 2>/dev/null; then :
                    177:   as_have_required=yes
1.14      bertrand  178: else
1.15      bertrand  179:   as_have_required=no
1.14      bertrand  180: fi
1.15      bertrand  181:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  182: 
                    183: else
1.15      bertrand  184:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    185: as_found=false
1.1       bertrand  186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    187: do
                    188:   IFS=$as_save_IFS
                    189:   test -z "$as_dir" && as_dir=.
1.15      bertrand  190:   as_found=:
                    191:   case $as_dir in #(
1.1       bertrand  192:     /*)
                    193:       for as_base in sh bash ksh sh5; do
1.15      bertrand  194:         # Try only shells that exist, to save several forks.
                    195:         as_shell=$as_dir/$as_base
                    196:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    197:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    198:   CONFIG_SHELL=$as_shell as_have_required=yes
                    199:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    200:   break 2
                    201: fi
                    202: fi
1.1       bertrand  203:       done;;
                    204:        esac
1.15      bertrand  205:   as_found=false
1.1       bertrand  206: done
1.15      bertrand  207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    208:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    209:   CONFIG_SHELL=$SHELL as_have_required=yes
                    210: fi; }
1.1       bertrand  211: IFS=$as_save_IFS
                    212: 
                    213: 
1.15      bertrand  214:       if test "x$CONFIG_SHELL" != x; then :
                    215:   # We cannot yet assume a decent shell, so we have to provide a
                    216:    # neutralization value for shells without unset; and this also
                    217:    # works around shells that cannot unset nonexistent variables.
1.57      bertrand  218:    # Preserve -v and -x to the replacement shell.
1.15      bertrand  219:    BASH_ENV=/dev/null
                    220:    ENV=/dev/null
                    221:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    222:    export CONFIG_SHELL
1.57      bertrand  223:    case $- in # ((((
                    224:      *v*x* | *x*v* ) as_opts=-vx ;;
                    225:      *v* ) as_opts=-v ;;
                    226:      *x* ) as_opts=-x ;;
                    227:      * ) as_opts= ;;
                    228:    esac
                    229:    exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15      bertrand  230: fi
                    231: 
                    232:     if test x$as_have_required = xno; then :
                    233:   $as_echo "$0: This script requires a shell more modern than all"
                    234:   $as_echo "$0: the shells that I found on your system."
                    235:   if test x${ZSH_VERSION+set} = xset ; then
                    236:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    237:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    238:   else
                    239:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    240: $0: including any error possibly output before this
                    241: $0: message. Then install a modern shell, or manually run
                    242: $0: the script under such a shell if you do have one."
                    243:   fi
                    244:   exit 1
                    245: fi
1.1       bertrand  246: fi
                    247: fi
1.15      bertrand  248: SHELL=${CONFIG_SHELL-/bin/sh}
                    249: export SHELL
                    250: # Unset more variables known to interfere with behavior of common tools.
                    251: CLICOLOR_FORCE= GREP_OPTIONS=
                    252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  253: 
1.15      bertrand  254: ## --------------------- ##
                    255: ## M4sh Shell Functions. ##
                    256: ## --------------------- ##
                    257: # as_fn_unset VAR
                    258: # ---------------
                    259: # Portably unset VAR.
                    260: as_fn_unset ()
                    261: {
                    262:   { eval $1=; unset $1;}
                    263: }
                    264: as_unset=as_fn_unset
                    265: 
                    266: # as_fn_set_status STATUS
                    267: # -----------------------
                    268: # Set $? to STATUS, without forking.
                    269: as_fn_set_status ()
                    270: {
                    271:   return $1
                    272: } # as_fn_set_status
                    273: 
                    274: # as_fn_exit STATUS
                    275: # -----------------
                    276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    277: as_fn_exit ()
                    278: {
                    279:   set +e
                    280:   as_fn_set_status $1
                    281:   exit $1
                    282: } # as_fn_exit
                    283: 
                    284: # as_fn_mkdir_p
                    285: # -------------
                    286: # Create "$as_dir" as a directory, including parents if necessary.
                    287: as_fn_mkdir_p ()
                    288: {
1.14      bertrand  289: 
1.15      bertrand  290:   case $as_dir in #(
                    291:   -*) as_dir=./$as_dir;;
                    292:   esac
                    293:   test -d "$as_dir" || eval $as_mkdir_p || {
                    294:     as_dirs=
                    295:     while :; do
                    296:       case $as_dir in #(
                    297:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    298:       *) as_qdir=$as_dir;;
                    299:       esac
                    300:       as_dirs="'$as_qdir' $as_dirs"
                    301:       as_dir=`$as_dirname -- "$as_dir" ||
                    302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    303:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    304:     X"$as_dir" : 'X\(//\)$' \| \
                    305:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    306: $as_echo X"$as_dir" |
                    307:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\/\)[^/].*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      /^X\(\/\/\)$/{
                    316:        s//\1/
                    317:        q
                    318:      }
                    319:      /^X\(\/\).*/{
                    320:        s//\1/
                    321:        q
                    322:      }
                    323:      s/.*/./; q'`
                    324:       test -d "$as_dir" && break
                    325:     done
                    326:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  327:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  328: 
                    329: 
1.15      bertrand  330: } # as_fn_mkdir_p
                    331: # as_fn_append VAR VALUE
                    332: # ----------------------
                    333: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    334: # advantage of any shell optimizations that allow amortized linear growth over
                    335: # repeated appends, instead of the typical quadratic growth present in naive
                    336: # implementations.
                    337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    338:   eval 'as_fn_append ()
                    339:   {
                    340:     eval $1+=\$2
                    341:   }'
1.14      bertrand  342: else
1.15      bertrand  343:   as_fn_append ()
                    344:   {
                    345:     eval $1=\$$1\$2
                    346:   }
                    347: fi # as_fn_append
1.1       bertrand  348: 
1.15      bertrand  349: # as_fn_arith ARG...
                    350: # ------------------
                    351: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    353: # must be portable across $(()) and expr.
                    354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    355:   eval 'as_fn_arith ()
                    356:   {
                    357:     as_val=$(( $* ))
                    358:   }'
1.1       bertrand  359: else
1.15      bertrand  360:   as_fn_arith ()
                    361:   {
                    362:     as_val=`expr "$@" || test $? -eq 1`
                    363:   }
                    364: fi # as_fn_arith
1.14      bertrand  365: 
                    366: 
1.36      bertrand  367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    368: # ----------------------------------------
1.15      bertrand  369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  371: # script with STATUS, using 1 if that was 0.
1.15      bertrand  372: as_fn_error ()
                    373: {
1.36      bertrand  374:   as_status=$1; test $as_status -eq 0 && as_status=1
                    375:   if test "$4"; then
                    376:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    377:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  378:   fi
1.36      bertrand  379:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  380:   as_fn_exit $as_status
                    381: } # as_fn_error
1.14      bertrand  382: 
1.15      bertrand  383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    385:   as_expr=expr
1.1       bertrand  386: else
1.15      bertrand  387:   as_expr=false
1.14      bertrand  388: fi
                    389: 
1.15      bertrand  390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    391:   as_basename=basename
1.1       bertrand  392: else
1.15      bertrand  393:   as_basename=false
1.14      bertrand  394: fi
                    395: 
1.15      bertrand  396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    397:   as_dirname=dirname
1.1       bertrand  398: else
1.15      bertrand  399:   as_dirname=false
1.1       bertrand  400: fi
                    401: 
1.15      bertrand  402: as_me=`$as_basename -- "$0" ||
                    403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    404:     X"$0" : 'X\(//\)$' \| \
                    405:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    406: $as_echo X/"$0" |
                    407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      /^X\/\(\/\/\)$/{
                    412:        s//\1/
                    413:        q
                    414:      }
                    415:      /^X\/\(\/\).*/{
                    416:        s//\1/
                    417:        q
                    418:      }
                    419:      s/.*/./; q'`
1.1       bertrand  420: 
1.15      bertrand  421: # Avoid depending upon Character Ranges.
                    422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    425: as_cr_digits='0123456789'
                    426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  427: 
                    428: 
1.15      bertrand  429:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    430:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    431:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    432:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    433:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  434:   sed -n '
                    435:     p
                    436:     /[$]LINENO/=
                    437:   ' <$as_myself |
                    438:     sed '
                    439:       s/[$]LINENO.*/&-/
                    440:       t lineno
                    441:       b
                    442:       :lineno
                    443:       N
                    444:       :loop
                    445:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    446:       t loop
                    447:       s/-\n.*//
                    448:     ' >$as_me.lineno &&
                    449:   chmod +x "$as_me.lineno" ||
1.15      bertrand  450:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  451: 
                    452:   # Don't try to exec as it changes $[0], causing all sort of problems
                    453:   # (the dirname of $[0] is not the place where we might find the
                    454:   # original and so on.  Autoconf is especially sensitive to this).
                    455:   . "./$as_me.lineno"
                    456:   # Exit status is that of the last command.
                    457:   exit
                    458: }
                    459: 
1.15      bertrand  460: ECHO_C= ECHO_N= ECHO_T=
                    461: case `echo -n x` in #(((((
                    462: -n*)
                    463:   case `echo 'xy\c'` in
1.1       bertrand  464:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  465:   xy)  ECHO_C='\c';;
                    466:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    467:        ECHO_T='    ';;
1.1       bertrand  468:   esac;;
                    469: *)
                    470:   ECHO_N='-n';;
                    471: esac
                    472: 
                    473: rm -f conf$$ conf$$.exe conf$$.file
                    474: if test -d conf$$.dir; then
                    475:   rm -f conf$$.dir/conf$$.file
                    476: else
                    477:   rm -f conf$$.dir
1.15      bertrand  478:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  479: fi
1.15      bertrand  480: if (echo >conf$$.file) 2>/dev/null; then
                    481:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s='ln -s'
                    483:     # ... but there are two gotchas:
                    484:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    485:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    486:     # In both cases, we have to default to `cp -p'.
                    487:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    488:       as_ln_s='cp -p'
                    489:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    490:     as_ln_s=ln
                    491:   else
1.1       bertrand  492:     as_ln_s='cp -p'
1.15      bertrand  493:   fi
1.1       bertrand  494: else
                    495:   as_ln_s='cp -p'
                    496: fi
                    497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    498: rmdir conf$$.dir 2>/dev/null
                    499: 
                    500: if mkdir -p . 2>/dev/null; then
1.15      bertrand  501:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  502: else
                    503:   test -d ./-p && rmdir ./-p
                    504:   as_mkdir_p=false
                    505: fi
                    506: 
                    507: if test -x / >/dev/null 2>&1; then
                    508:   as_test_x='test -x'
                    509: else
                    510:   if ls -dL / >/dev/null 2>&1; then
                    511:     as_ls_L_option=L
                    512:   else
                    513:     as_ls_L_option=
                    514:   fi
                    515:   as_test_x='
                    516:     eval sh -c '\''
                    517:       if test -d "$1"; then
1.15      bertrand  518:    test -d "$1/.";
1.1       bertrand  519:       else
1.15      bertrand  520:    case $1 in #(
                    521:    -*)set "./$1";;
1.1       bertrand  522:    esac;
1.15      bertrand  523:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  524:    ???[sx]*):;;*)false;;esac;fi
                    525:     '\'' sh
                    526:   '
                    527: fi
                    528: as_executable_p=$as_test_x
                    529: 
                    530: # Sed expression to map a string onto a valid CPP name.
                    531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    532: 
                    533: # Sed expression to map a string onto a valid variable name.
                    534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    535: 
                    536: 
1.15      bertrand  537: test -n "$DJDIR" || exec 7<&0 </dev/null
                    538: exec 6>&1
1.1       bertrand  539: 
                    540: # Name of the host.
1.36      bertrand  541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  542: # so uname gets run too.
                    543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    544: 
                    545: #
                    546: # Initializations.
                    547: #
                    548: ac_default_prefix=/usr/local
                    549: ac_clean_files=
                    550: ac_config_libobj_dir=.
                    551: LIBOBJS=
                    552: cross_compiling=no
                    553: subdirs=
                    554: MFLAGS=
                    555: MAKEFLAGS=
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='rpl'
                    559: PACKAGE_TARNAME='rpl'
1.73      bertrand  560: PACKAGE_VERSION='4.1.3'
                    561: PACKAGE_STRING='rpl 4.1.3'
1.1       bertrand  562: PACKAGE_BUGREPORT=''
1.15      bertrand  563: PACKAGE_URL=''
1.1       bertrand  564: 
                    565: ac_default_prefix=/usr/local
                    566: # Factoring default headers for most tests.
                    567: ac_includes_default="\
                    568: #include <stdio.h>
                    569: #ifdef HAVE_SYS_TYPES_H
                    570: # include <sys/types.h>
                    571: #endif
                    572: #ifdef HAVE_SYS_STAT_H
                    573: # include <sys/stat.h>
                    574: #endif
                    575: #ifdef STDC_HEADERS
                    576: # include <stdlib.h>
                    577: # include <stddef.h>
                    578: #else
                    579: # ifdef HAVE_STDLIB_H
                    580: #  include <stdlib.h>
                    581: # endif
                    582: #endif
                    583: #ifdef HAVE_STRING_H
                    584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    585: #  include <memory.h>
                    586: # endif
                    587: # include <string.h>
                    588: #endif
                    589: #ifdef HAVE_STRINGS_H
                    590: # include <strings.h>
                    591: #endif
                    592: #ifdef HAVE_INTTYPES_H
                    593: # include <inttypes.h>
                    594: #endif
                    595: #ifdef HAVE_STDINT_H
                    596: # include <stdint.h>
                    597: #endif
                    598: #ifdef HAVE_UNISTD_H
                    599: # include <unistd.h>
                    600: #endif"
                    601: 
1.15      bertrand  602: enable_option_checking=no
                    603: ac_subst_vars='am__EXEEXT_FALSE
                    604: am__EXEEXT_TRUE
                    605: LTLIBOBJS
                    606: LIBOBJS
1.56      bertrand  607: GIAC
                    608: PARI
                    609: COCOA
                    610: NTL
1.55      bertrand  611: MPFR
                    612: GMP
1.49      bertrand  613: MALLOC
1.30      bertrand  614: EXT_SQL
1.15      bertrand  615: DATE_FR
                    616: FINAL_ENCODING
1.76      bertrand  617: SIGSEGV
1.15      bertrand  618: OPENSSL
                    619: SQLITE
                    620: ICONV
                    621: FILE
                    622: GNUPLOT
                    623: GPP
                    624: GSL
                    625: UNITS
                    626: READLINE
                    627: NCURSES
1.75      bertrand  628: ELF
1.40      bertrand  629: BSH_PATH
1.34      bertrand  630: IPV6
1.33      bertrand  631: SEMUN
1.36      bertrand  632: IPCS_SYSV
1.17      bertrand  633: SEMAPHORES_NOMMES
                    634: NESTED_FUNCTIONS
                    635: EXPORT_DYNAMIC
1.33      bertrand  636: C_STANDARD
1.15      bertrand  637: OS
1.69      bertrand  638: HOST
1.15      bertrand  639: GNUPLOT_COMPILATION
                    640: subdirs
                    641: EGREP
                    642: GREP
                    643: libPgSQLlib
                    644: libPgSQLinc
                    645: POSTGRESQL_SUPPORT
                    646: libMySQLlib
                    647: libMySQLinc
                    648: MYSQL_SUPPORT
                    649: DATE
                    650: includeX
                    651: libX
                    652: MOTIF_SUPPORT
                    653: DEBUG
                    654: EXPERIMENTAL_CODE
                    655: VIM_SUPPORT
                    656: POSTSCRIPT_SUPPORT
                    657: FORCE_GNUPLOT_PATH
                    658: GNUPLOT_SUPPORT
                    659: VIM
                    660: GNUPLOT_P
                    661: GV
                    662: GS
                    663: DVIPS
                    664: LATEX
                    665: TEX
                    666: SED
                    667: RANLIB
                    668: LN_S
                    669: RUNPATH
                    670: PROFILAGE
1.67      bertrand  671: LIBRPLCAS
                    672: RPLCAS
1.66      bertrand  673: ABI
1.15      bertrand  674: X_EXTRA_LIBS
                    675: X_LIBS
                    676: X_PRE_LIBS
                    677: X_CFLAGS
                    678: CPP
                    679: XMKMF
                    680: ac_ct_FC
                    681: FCFLAGS
                    682: FC
                    683: ac_ct_F77
                    684: FFLAGS
                    685: F77
                    686: am__fastdepCXX_FALSE
                    687: am__fastdepCXX_TRUE
                    688: CXXDEPMODE
                    689: ac_ct_CXX
                    690: CXXFLAGS
                    691: CXX
                    692: am__fastdepCC_FALSE
                    693: am__fastdepCC_TRUE
                    694: CCDEPMODE
                    695: AMDEPBACKSLASH
                    696: AMDEP_FALSE
                    697: AMDEP_TRUE
                    698: am__quote
                    699: am__include
                    700: DEPDIR
                    701: OBJEXT
                    702: EXEEXT
                    703: ac_ct_CC
                    704: CPPFLAGS
                    705: LDFLAGS
                    706: CFLAGS
                    707: CC
                    708: am__untar
                    709: am__tar
                    710: AMTAR
                    711: am__leading_dot
                    712: SET_MAKE
                    713: AWK
                    714: mkdir_p
                    715: MKDIR_P
                    716: INSTALL_STRIP_PROGRAM
                    717: STRIP
                    718: install_sh
                    719: MAKEINFO
                    720: AUTOHEADER
                    721: AUTOMAKE
                    722: AUTOCONF
                    723: ACLOCAL
                    724: VERSION
                    725: PACKAGE
                    726: CYGPATH_W
                    727: am__isrc
                    728: INSTALL_DATA
                    729: INSTALL_SCRIPT
                    730: INSTALL_PROGRAM
                    731: target_os
                    732: target_vendor
                    733: target_cpu
                    734: target
                    735: host_os
                    736: host_vendor
                    737: host_cpu
                    738: host
                    739: build_os
                    740: build_vendor
                    741: build_cpu
                    742: build
                    743: target_alias
                    744: host_alias
                    745: build_alias
                    746: LIBS
                    747: ECHO_T
                    748: ECHO_N
                    749: ECHO_C
                    750: DEFS
                    751: mandir
                    752: localedir
                    753: libdir
                    754: psdir
                    755: pdfdir
                    756: dvidir
                    757: htmldir
                    758: infodir
                    759: docdir
                    760: oldincludedir
                    761: includedir
                    762: localstatedir
                    763: sharedstatedir
                    764: sysconfdir
                    765: datadir
                    766: datarootdir
                    767: libexecdir
                    768: sbindir
                    769: bindir
                    770: program_transform_name
                    771: prefix
                    772: exec_prefix
                    773: PACKAGE_URL
                    774: PACKAGE_BUGREPORT
                    775: PACKAGE_STRING
                    776: PACKAGE_VERSION
                    777: PACKAGE_TARNAME
                    778: PACKAGE_NAME
1.14      bertrand  779: PATH_SEPARATOR
1.15      bertrand  780: SHELL'
                    781: ac_subst_files=''
                    782: ac_user_opts='
                    783: enable_option_checking
                    784: enable_dependency_tracking
                    785: with_x
1.69      bertrand  786: with_32bits_abi
                    787: with_64bits_abi
1.67      bertrand  788: with_rplcas
1.15      bertrand  789: enable_optimization
1.36      bertrand  790: enable_sysv_semaphores
1.30      bertrand  791: enable_full_static
1.15      bertrand  792: enable_final_encoding
                    793: enable_tex
                    794: enable_vim
                    795: enable_embedded_gnuplot
                    796: enable_gnuplot
                    797: enable_motif
                    798: enable_experimental
                    799: enable_debug
                    800: enable_profile
                    801: enable_final_run_path
                    802: with_mysql
                    803: with_postgresql
1.40      bertrand  804: with_bourne_shell
1.15      bertrand  805: with_openssl_arch
                    806: '
                    807:       ac_precious_vars='build_alias
1.1       bertrand  808: host_alias
                    809: target_alias
                    810: CC
                    811: CFLAGS
                    812: LDFLAGS
1.15      bertrand  813: LIBS
1.1       bertrand  814: CPPFLAGS
                    815: CXX
                    816: CXXFLAGS
1.15      bertrand  817: CCC
1.1       bertrand  818: F77
                    819: FFLAGS
                    820: FC
                    821: FCFLAGS
                    822: XMKMF
                    823: CPP'
1.69      bertrand  824: ac_subdirs_all='tools/$GNUPLOT
                    825: tools/$NCURSES
1.1       bertrand  826: tools/$READLINE
                    827: tools/$GSL
                    828: tools/$GPP
                    829: tools/$FILE
                    830: tools/$ICONV
1.9       bertrand  831: tools/$SQLITE
1.76      bertrand  832: tools/$UNITS
                    833: tools/$SIGSEGV'
1.1       bertrand  834: 
                    835: # Initialize some variables set by options.
                    836: ac_init_help=
                    837: ac_init_version=false
1.15      bertrand  838: ac_unrecognized_opts=
                    839: ac_unrecognized_sep=
1.1       bertrand  840: # The variables have the same names as the options, with
                    841: # dashes changed to underlines.
                    842: cache_file=/dev/null
                    843: exec_prefix=NONE
                    844: no_create=
                    845: no_recursion=
                    846: prefix=NONE
                    847: program_prefix=NONE
                    848: program_suffix=NONE
                    849: program_transform_name=s,x,x,
                    850: silent=
                    851: site=
                    852: srcdir=
                    853: verbose=
                    854: x_includes=NONE
                    855: x_libraries=NONE
                    856: 
                    857: # Installation directory options.
                    858: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    859: # and all the variables that are supposed to be based on exec_prefix
                    860: # by default will actually change.
                    861: # Use braces instead of parens because sh, perl, etc. also accept them.
                    862: # (The list follows the same order as the GNU Coding Standards.)
                    863: bindir='${exec_prefix}/bin'
                    864: sbindir='${exec_prefix}/sbin'
                    865: libexecdir='${exec_prefix}/libexec'
                    866: datarootdir='${prefix}/share'
                    867: datadir='${datarootdir}'
                    868: sysconfdir='${prefix}/etc'
                    869: sharedstatedir='${prefix}/com'
                    870: localstatedir='${prefix}/var'
                    871: includedir='${prefix}/include'
                    872: oldincludedir='/usr/include'
                    873: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    874: infodir='${datarootdir}/info'
                    875: htmldir='${docdir}'
                    876: dvidir='${docdir}'
                    877: pdfdir='${docdir}'
                    878: psdir='${docdir}'
                    879: libdir='${exec_prefix}/lib'
                    880: localedir='${datarootdir}/locale'
                    881: mandir='${datarootdir}/man'
                    882: 
                    883: ac_prev=
                    884: ac_dashdash=
                    885: for ac_option
                    886: do
                    887:   # If the previous option needs an argument, assign it.
                    888:   if test -n "$ac_prev"; then
                    889:     eval $ac_prev=\$ac_option
                    890:     ac_prev=
                    891:     continue
                    892:   fi
                    893: 
                    894:   case $ac_option in
1.36      bertrand  895:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    896:   *=)   ac_optarg= ;;
                    897:   *)    ac_optarg=yes ;;
1.1       bertrand  898:   esac
                    899: 
                    900:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    901: 
                    902:   case $ac_dashdash$ac_option in
                    903:   --)
                    904:     ac_dashdash=yes ;;
                    905: 
                    906:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    907:     ac_prev=bindir ;;
                    908:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    909:     bindir=$ac_optarg ;;
                    910: 
                    911:   -build | --build | --buil | --bui | --bu)
                    912:     ac_prev=build_alias ;;
                    913:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    914:     build_alias=$ac_optarg ;;
                    915: 
                    916:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    917:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    918:     ac_prev=cache_file ;;
                    919:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    920:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    921:     cache_file=$ac_optarg ;;
                    922: 
                    923:   --config-cache | -C)
                    924:     cache_file=config.cache ;;
                    925: 
                    926:   -datadir | --datadir | --datadi | --datad)
                    927:     ac_prev=datadir ;;
                    928:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    929:     datadir=$ac_optarg ;;
                    930: 
                    931:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    932:   | --dataroo | --dataro | --datar)
                    933:     ac_prev=datarootdir ;;
                    934:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    935:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    936:     datarootdir=$ac_optarg ;;
                    937: 
                    938:   -disable-* | --disable-*)
1.15      bertrand  939:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  940:     # Reject names that are not valid shell variable names.
1.15      bertrand  941:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  942:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  943:     ac_useropt_orig=$ac_useropt
                    944:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    945:     case $ac_user_opts in
                    946:       *"
                    947: "enable_$ac_useropt"
                    948: "*) ;;
                    949:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    950:     ac_unrecognized_sep=', ';;
                    951:     esac
                    952:     eval enable_$ac_useropt=no ;;
1.1       bertrand  953: 
                    954:   -docdir | --docdir | --docdi | --doc | --do)
                    955:     ac_prev=docdir ;;
                    956:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    957:     docdir=$ac_optarg ;;
                    958: 
                    959:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    960:     ac_prev=dvidir ;;
                    961:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    962:     dvidir=$ac_optarg ;;
                    963: 
                    964:   -enable-* | --enable-*)
1.15      bertrand  965:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  966:     # Reject names that are not valid shell variable names.
1.15      bertrand  967:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  968:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  969:     ac_useropt_orig=$ac_useropt
                    970:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    971:     case $ac_user_opts in
                    972:       *"
                    973: "enable_$ac_useropt"
                    974: "*) ;;
                    975:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    976:     ac_unrecognized_sep=', ';;
                    977:     esac
                    978:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  979: 
                    980:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    981:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    982:   | --exec | --exe | --ex)
                    983:     ac_prev=exec_prefix ;;
                    984:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    985:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    986:   | --exec=* | --exe=* | --ex=*)
                    987:     exec_prefix=$ac_optarg ;;
                    988: 
                    989:   -gas | --gas | --ga | --g)
                    990:     # Obsolete; use --with-gas.
                    991:     with_gas=yes ;;
                    992: 
                    993:   -help | --help | --hel | --he | -h)
                    994:     ac_init_help=long ;;
                    995:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    996:     ac_init_help=recursive ;;
                    997:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    998:     ac_init_help=short ;;
                    999: 
                   1000:   -host | --host | --hos | --ho)
                   1001:     ac_prev=host_alias ;;
                   1002:   -host=* | --host=* | --hos=* | --ho=*)
                   1003:     host_alias=$ac_optarg ;;
                   1004: 
                   1005:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1006:     ac_prev=htmldir ;;
                   1007:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1008:   | --ht=*)
                   1009:     htmldir=$ac_optarg ;;
                   1010: 
                   1011:   -includedir | --includedir | --includedi | --included | --include \
                   1012:   | --includ | --inclu | --incl | --inc)
                   1013:     ac_prev=includedir ;;
                   1014:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1015:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1016:     includedir=$ac_optarg ;;
                   1017: 
                   1018:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1019:     ac_prev=infodir ;;
                   1020:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1021:     infodir=$ac_optarg ;;
                   1022: 
                   1023:   -libdir | --libdir | --libdi | --libd)
                   1024:     ac_prev=libdir ;;
                   1025:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1026:     libdir=$ac_optarg ;;
                   1027: 
                   1028:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1029:   | --libexe | --libex | --libe)
                   1030:     ac_prev=libexecdir ;;
                   1031:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1032:   | --libexe=* | --libex=* | --libe=*)
                   1033:     libexecdir=$ac_optarg ;;
                   1034: 
                   1035:   -localedir | --localedir | --localedi | --localed | --locale)
                   1036:     ac_prev=localedir ;;
                   1037:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1038:     localedir=$ac_optarg ;;
                   1039: 
                   1040:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1041:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1042:     ac_prev=localstatedir ;;
                   1043:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1044:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1045:     localstatedir=$ac_optarg ;;
                   1046: 
                   1047:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1048:     ac_prev=mandir ;;
                   1049:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1050:     mandir=$ac_optarg ;;
                   1051: 
                   1052:   -nfp | --nfp | --nf)
                   1053:     # Obsolete; use --without-fp.
                   1054:     with_fp=no ;;
                   1055: 
                   1056:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1057:   | --no-cr | --no-c | -n)
                   1058:     no_create=yes ;;
                   1059: 
                   1060:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1061:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1062:     no_recursion=yes ;;
                   1063: 
                   1064:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1065:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1066:   | --oldin | --oldi | --old | --ol | --o)
                   1067:     ac_prev=oldincludedir ;;
                   1068:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1069:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1070:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1071:     oldincludedir=$ac_optarg ;;
                   1072: 
                   1073:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1074:     ac_prev=prefix ;;
                   1075:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1076:     prefix=$ac_optarg ;;
                   1077: 
                   1078:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1079:   | --program-pre | --program-pr | --program-p)
                   1080:     ac_prev=program_prefix ;;
                   1081:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1082:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1083:     program_prefix=$ac_optarg ;;
                   1084: 
                   1085:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1086:   | --program-suf | --program-su | --program-s)
                   1087:     ac_prev=program_suffix ;;
                   1088:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1089:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1090:     program_suffix=$ac_optarg ;;
                   1091: 
                   1092:   -program-transform-name | --program-transform-name \
                   1093:   | --program-transform-nam | --program-transform-na \
                   1094:   | --program-transform-n | --program-transform- \
                   1095:   | --program-transform | --program-transfor \
                   1096:   | --program-transfo | --program-transf \
                   1097:   | --program-trans | --program-tran \
                   1098:   | --progr-tra | --program-tr | --program-t)
                   1099:     ac_prev=program_transform_name ;;
                   1100:   -program-transform-name=* | --program-transform-name=* \
                   1101:   | --program-transform-nam=* | --program-transform-na=* \
                   1102:   | --program-transform-n=* | --program-transform-=* \
                   1103:   | --program-transform=* | --program-transfor=* \
                   1104:   | --program-transfo=* | --program-transf=* \
                   1105:   | --program-trans=* | --program-tran=* \
                   1106:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1107:     program_transform_name=$ac_optarg ;;
                   1108: 
                   1109:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1110:     ac_prev=pdfdir ;;
                   1111:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1112:     pdfdir=$ac_optarg ;;
                   1113: 
                   1114:   -psdir | --psdir | --psdi | --psd | --ps)
                   1115:     ac_prev=psdir ;;
                   1116:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1117:     psdir=$ac_optarg ;;
                   1118: 
                   1119:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1120:   | -silent | --silent | --silen | --sile | --sil)
                   1121:     silent=yes ;;
                   1122: 
                   1123:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1124:     ac_prev=sbindir ;;
                   1125:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1126:   | --sbi=* | --sb=*)
                   1127:     sbindir=$ac_optarg ;;
                   1128: 
                   1129:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1130:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1131:   | --sharedst | --shareds | --shared | --share | --shar \
                   1132:   | --sha | --sh)
                   1133:     ac_prev=sharedstatedir ;;
                   1134:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1135:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1136:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1137:   | --sha=* | --sh=*)
                   1138:     sharedstatedir=$ac_optarg ;;
                   1139: 
                   1140:   -site | --site | --sit)
                   1141:     ac_prev=site ;;
                   1142:   -site=* | --site=* | --sit=*)
                   1143:     site=$ac_optarg ;;
                   1144: 
                   1145:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1146:     ac_prev=srcdir ;;
                   1147:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1148:     srcdir=$ac_optarg ;;
                   1149: 
                   1150:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1151:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1152:     ac_prev=sysconfdir ;;
                   1153:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1154:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1155:     sysconfdir=$ac_optarg ;;
                   1156: 
                   1157:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1158:     ac_prev=target_alias ;;
                   1159:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1160:     target_alias=$ac_optarg ;;
                   1161: 
                   1162:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1163:     verbose=yes ;;
                   1164: 
                   1165:   -version | --version | --versio | --versi | --vers | -V)
                   1166:     ac_init_version=: ;;
                   1167: 
                   1168:   -with-* | --with-*)
1.15      bertrand 1169:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1170:     # Reject names that are not valid shell variable names.
1.15      bertrand 1171:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1172:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1173:     ac_useropt_orig=$ac_useropt
                   1174:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1175:     case $ac_user_opts in
                   1176:       *"
                   1177: "with_$ac_useropt"
                   1178: "*) ;;
                   1179:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1180:     ac_unrecognized_sep=', ';;
                   1181:     esac
                   1182:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1183: 
                   1184:   -without-* | --without-*)
1.15      bertrand 1185:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1186:     # Reject names that are not valid shell variable names.
1.15      bertrand 1187:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1188:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1189:     ac_useropt_orig=$ac_useropt
                   1190:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1191:     case $ac_user_opts in
                   1192:       *"
                   1193: "with_$ac_useropt"
                   1194: "*) ;;
                   1195:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1196:     ac_unrecognized_sep=', ';;
                   1197:     esac
                   1198:     eval with_$ac_useropt=no ;;
1.1       bertrand 1199: 
                   1200:   --x)
                   1201:     # Obsolete; use --with-x.
                   1202:     with_x=yes ;;
                   1203: 
                   1204:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1205:   | --x-incl | --x-inc | --x-in | --x-i)
                   1206:     ac_prev=x_includes ;;
                   1207:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1208:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1209:     x_includes=$ac_optarg ;;
                   1210: 
                   1211:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1212:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1213:     ac_prev=x_libraries ;;
                   1214:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1215:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1216:     x_libraries=$ac_optarg ;;
                   1217: 
1.36      bertrand 1218:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1219: Try \`$0 --help' for more information"
1.1       bertrand 1220:     ;;
                   1221: 
                   1222:   *=*)
                   1223:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1224:     # Reject names that are not valid shell variable names.
1.15      bertrand 1225:     case $ac_envvar in #(
                   1226:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1227:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1228:     esac
1.1       bertrand 1229:     eval $ac_envvar=\$ac_optarg
                   1230:     export $ac_envvar ;;
                   1231: 
                   1232:   *)
                   1233:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1234:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1235:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1236:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1237:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1238:     ;;
                   1239: 
                   1240:   esac
                   1241: done
                   1242: 
                   1243: if test -n "$ac_prev"; then
                   1244:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1245:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1246: fi
                   1247: 
                   1248: if test -n "$ac_unrecognized_opts"; then
                   1249:   case $enable_option_checking in
                   1250:     no) ;;
1.36      bertrand 1251:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1252:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1253:   esac
1.1       bertrand 1254: fi
                   1255: 
1.15      bertrand 1256: # Check all directory arguments for consistency.
1.1       bertrand 1257: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1258:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1259:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1260:        libdir localedir mandir
                   1261: do
                   1262:   eval ac_val=\$$ac_var
1.15      bertrand 1263:   # Remove trailing slashes.
                   1264:   case $ac_val in
                   1265:     */ )
                   1266:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1267:       eval $ac_var=\$ac_val;;
                   1268:   esac
                   1269:   # Be sure to have absolute directory names.
1.1       bertrand 1270:   case $ac_val in
                   1271:     [\\/$]* | ?:[\\/]* )  continue;;
                   1272:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1273:   esac
1.36      bertrand 1274:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1275: done
                   1276: 
                   1277: # There might be people who depend on the old broken behavior: `$host'
                   1278: # used to hold the argument of --host etc.
                   1279: # FIXME: To remove some day.
                   1280: build=$build_alias
                   1281: host=$host_alias
                   1282: target=$target_alias
                   1283: 
                   1284: # FIXME: To remove some day.
                   1285: if test "x$host_alias" != x; then
                   1286:   if test "x$build_alias" = x; then
                   1287:     cross_compiling=maybe
1.36      bertrand 1288:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1289:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1290:   elif test "x$build_alias" != "x$host_alias"; then
                   1291:     cross_compiling=yes
                   1292:   fi
                   1293: fi
                   1294: 
                   1295: ac_tool_prefix=
                   1296: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1297: 
                   1298: test "$silent" = yes && exec 6>/dev/null
                   1299: 
                   1300: 
                   1301: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1302: ac_ls_di=`ls -di .` &&
                   1303: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1304:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1305: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1306:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1307: 
                   1308: 
                   1309: # Find the source files, if location was not specified.
                   1310: if test -z "$srcdir"; then
                   1311:   ac_srcdir_defaulted=yes
                   1312:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1313:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1314: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1315:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1316:     X"$as_myself" : 'X\(//\)$' \| \
                   1317:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1318: $as_echo X"$as_myself" |
1.1       bertrand 1319:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1320:        s//\1/
                   1321:        q
                   1322:      }
                   1323:      /^X\(\/\/\)[^/].*/{
                   1324:        s//\1/
                   1325:        q
                   1326:      }
                   1327:      /^X\(\/\/\)$/{
                   1328:        s//\1/
                   1329:        q
                   1330:      }
                   1331:      /^X\(\/\).*/{
                   1332:        s//\1/
                   1333:        q
                   1334:      }
                   1335:      s/.*/./; q'`
                   1336:   srcdir=$ac_confdir
                   1337:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1338:     srcdir=..
                   1339:   fi
                   1340: else
                   1341:   ac_srcdir_defaulted=no
                   1342: fi
                   1343: if test ! -r "$srcdir/$ac_unique_file"; then
                   1344:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1345:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1346: fi
                   1347: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1348: ac_abs_confdir=`(
1.36      bertrand 1349:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1350:    pwd)`
                   1351: # When building in place, set srcdir=.
                   1352: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1353:   srcdir=.
                   1354: fi
                   1355: # Remove unnecessary trailing slashes from srcdir.
                   1356: # Double slashes in file names in object file debugging info
                   1357: # mess up M-x gdb in Emacs.
                   1358: case $srcdir in
                   1359: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1360: esac
                   1361: for ac_var in $ac_precious_vars; do
                   1362:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1363:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1364:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1365:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1366: done
                   1367: 
                   1368: #
                   1369: # Report the --help message.
                   1370: #
                   1371: if test "$ac_init_help" = "long"; then
                   1372:   # Omit some internal or obsolete options to make the list less imposing.
                   1373:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1374:   cat <<_ACEOF
1.73      bertrand 1375: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1.1       bertrand 1376: 
                   1377: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1378: 
                   1379: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1380: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1381: 
                   1382: Defaults for the options are specified in brackets.
                   1383: 
                   1384: Configuration:
                   1385:   -h, --help              display this help and exit
                   1386:       --help=short        display options specific to this package
                   1387:       --help=recursive    display the short help of all the included packages
                   1388:   -V, --version           display version information and exit
1.36      bertrand 1389:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1390:       --cache-file=FILE   cache test results in FILE [disabled]
                   1391:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1392:   -n, --no-create         do not create output files
                   1393:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1394: 
                   1395: Installation directories:
                   1396:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1397:                           [$ac_default_prefix]
1.1       bertrand 1398:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1399:                           [PREFIX]
1.1       bertrand 1400: 
                   1401: By default, \`make install' will install all the files in
                   1402: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1403: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1404: for instance \`--prefix=\$HOME'.
                   1405: 
                   1406: For better control, use the options below.
                   1407: 
                   1408: Fine tuning of the installation directories:
1.15      bertrand 1409:   --bindir=DIR            user executables [EPREFIX/bin]
                   1410:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1411:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1412:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1413:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1414:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1415:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1416:   --includedir=DIR        C header files [PREFIX/include]
                   1417:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1418:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1419:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1420:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1421:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1422:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1423:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1424:   --htmldir=DIR           html documentation [DOCDIR]
                   1425:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1426:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1427:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1428: _ACEOF
                   1429: 
                   1430:   cat <<\_ACEOF
                   1431: 
                   1432: Program names:
                   1433:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1434:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1435:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1436: 
                   1437: X features:
                   1438:   --x-includes=DIR    X include files are in DIR
                   1439:   --x-libraries=DIR   X library files are in DIR
                   1440: 
                   1441: System types:
                   1442:   --build=BUILD     configure for building on BUILD [guessed]
                   1443:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1444:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1445: _ACEOF
                   1446: fi
                   1447: 
                   1448: if test -n "$ac_init_help"; then
                   1449:   case $ac_init_help in
1.73      bertrand 1450:      short | recursive ) echo "Configuration of rpl 4.1.3:";;
1.1       bertrand 1451:    esac
                   1452:   cat <<\_ACEOF
                   1453: 
                   1454: Optional Features:
1.15      bertrand 1455:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1456:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1457:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1458:   --disable-dependency-tracking  speeds up one-time build
                   1459:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1460:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1461:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1462:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1463:   --enable-final-encoding force final encoding [default=guessed]
                   1464:   --enable-tex            provide the TeX support [default=guessed]
                   1465:   --enable-vim            provide the vim support [default=guessed]
                   1466:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1467:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1468:   --enable-motif          provide the Motif support [default=guessed]
                   1469:   --enable-experimental   enable experimental code [default=no]
                   1470:   --enable-debug          enable debug code [default=no]
                   1471:   --enable-profile        enable profile code [default=no]
                   1472:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1473: 
                   1474: Optional Packages:
                   1475:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1476:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1477:   --with-x                use the X Window System
1.64      bertrand 1478:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1479:   --with-64bits-abi       force 64bits ABI (multilib)
                   1480:   --with-rplcas           compile rplcas (default=no)
1.1       bertrand 1481:   --with-mysql=PATH         specify directory for installed mysql
                   1482:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1483:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1484:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1485: 
                   1486: Some influential environment variables:
                   1487:   CC          C compiler command
                   1488:   CFLAGS      C compiler flags
                   1489:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1490:               nonstandard directory <lib dir>
                   1491:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1492:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1493:               you have headers in a nonstandard directory <include dir>
                   1494:   CXX         C++ compiler command
                   1495:   CXXFLAGS    C++ compiler flags
                   1496:   F77         Fortran 77 compiler command
                   1497:   FFLAGS      Fortran 77 compiler flags
                   1498:   FC          Fortran compiler command
                   1499:   FCFLAGS     Fortran compiler flags
                   1500:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1501:   CPP         C preprocessor
                   1502: 
                   1503: Use these variables to override the choices made by `configure' or to help
                   1504: it to find libraries and programs with nonstandard names/locations.
                   1505: 
1.15      bertrand 1506: Report bugs to the package provider.
1.1       bertrand 1507: _ACEOF
                   1508: ac_status=$?
                   1509: fi
                   1510: 
                   1511: if test "$ac_init_help" = "recursive"; then
                   1512:   # If there are subdirs, report their specific --help.
                   1513:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1514:     test -d "$ac_dir" ||
                   1515:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1516:       continue
1.1       bertrand 1517:     ac_builddir=.
                   1518: 
                   1519: case "$ac_dir" in
                   1520: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1521: *)
1.15      bertrand 1522:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1523:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1524:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1525:   case $ac_top_builddir_sub in
                   1526:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1527:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1528:   esac ;;
                   1529: esac
                   1530: ac_abs_top_builddir=$ac_pwd
                   1531: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1532: # for backward compatibility:
                   1533: ac_top_builddir=$ac_top_build_prefix
                   1534: 
                   1535: case $srcdir in
                   1536:   .)  # We are building in place.
                   1537:     ac_srcdir=.
                   1538:     ac_top_srcdir=$ac_top_builddir_sub
                   1539:     ac_abs_top_srcdir=$ac_pwd ;;
                   1540:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1541:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1542:     ac_top_srcdir=$srcdir
                   1543:     ac_abs_top_srcdir=$srcdir ;;
                   1544:   *) # Relative name.
                   1545:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1546:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1547:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1548: esac
                   1549: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1550: 
                   1551:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1552:     # Check for guested configure.
                   1553:     if test -f "$ac_srcdir/configure.gnu"; then
                   1554:       echo &&
                   1555:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1556:     elif test -f "$ac_srcdir/configure"; then
                   1557:       echo &&
                   1558:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1559:     else
1.15      bertrand 1560:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1561:     fi || ac_status=$?
                   1562:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1563:   done
                   1564: fi
                   1565: 
                   1566: test -n "$ac_init_help" && exit $ac_status
                   1567: if $ac_init_version; then
                   1568:   cat <<\_ACEOF
1.73      bertrand 1569: rpl configure 4.1.3
1.57      bertrand 1570: generated by GNU Autoconf 2.68
1.1       bertrand 1571: 
1.36      bertrand 1572: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1573: This configure script is free software; the Free Software Foundation
                   1574: gives unlimited permission to copy, distribute and modify it.
                   1575: _ACEOF
                   1576:   exit
                   1577: fi
                   1578: 
1.15      bertrand 1579: ## ------------------------ ##
                   1580: ## Autoconf initialization. ##
                   1581: ## ------------------------ ##
                   1582: 
                   1583: # ac_fn_c_try_compile LINENO
                   1584: # --------------------------
                   1585: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1586: ac_fn_c_try_compile ()
                   1587: {
                   1588:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1589:   rm -f conftest.$ac_objext
                   1590:   if { { ac_try="$ac_compile"
                   1591: case "(($ac_try" in
                   1592:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1593:   *) ac_try_echo=$ac_try;;
                   1594: esac
                   1595: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1596: $as_echo "$ac_try_echo"; } >&5
                   1597:   (eval "$ac_compile") 2>conftest.err
                   1598:   ac_status=$?
                   1599:   if test -s conftest.err; then
                   1600:     grep -v '^ *+' conftest.err >conftest.er1
                   1601:     cat conftest.er1 >&5
                   1602:     mv -f conftest.er1 conftest.err
                   1603:   fi
                   1604:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1605:   test $ac_status = 0; } && {
                   1606:     test -z "$ac_c_werror_flag" ||
                   1607:     test ! -s conftest.err
                   1608:        } && test -s conftest.$ac_objext; then :
                   1609:   ac_retval=0
                   1610: else
                   1611:   $as_echo "$as_me: failed program was:" >&5
                   1612: sed 's/^/| /' conftest.$ac_ext >&5
                   1613: 
                   1614:    ac_retval=1
                   1615: fi
1.57      bertrand 1616:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1617:   as_fn_set_status $ac_retval
1.1       bertrand 1618: 
1.15      bertrand 1619: } # ac_fn_c_try_compile
1.1       bertrand 1620: 
1.15      bertrand 1621: # ac_fn_cxx_try_compile LINENO
                   1622: # ----------------------------
                   1623: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1624: ac_fn_cxx_try_compile ()
1.1       bertrand 1625: {
1.15      bertrand 1626:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1627:   rm -f conftest.$ac_objext
                   1628:   if { { ac_try="$ac_compile"
                   1629: case "(($ac_try" in
                   1630:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1631:   *) ac_try_echo=$ac_try;;
                   1632: esac
                   1633: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1634: $as_echo "$ac_try_echo"; } >&5
                   1635:   (eval "$ac_compile") 2>conftest.err
                   1636:   ac_status=$?
                   1637:   if test -s conftest.err; then
                   1638:     grep -v '^ *+' conftest.err >conftest.er1
                   1639:     cat conftest.er1 >&5
                   1640:     mv -f conftest.er1 conftest.err
                   1641:   fi
                   1642:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1643:   test $ac_status = 0; } && {
                   1644:     test -z "$ac_cxx_werror_flag" ||
                   1645:     test ! -s conftest.err
                   1646:        } && test -s conftest.$ac_objext; then :
                   1647:   ac_retval=0
                   1648: else
                   1649:   $as_echo "$as_me: failed program was:" >&5
                   1650: sed 's/^/| /' conftest.$ac_ext >&5
                   1651: 
                   1652:    ac_retval=1
                   1653: fi
1.57      bertrand 1654:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1655:   as_fn_set_status $ac_retval
1.1       bertrand 1656: 
1.15      bertrand 1657: } # ac_fn_cxx_try_compile
1.1       bertrand 1658: 
1.15      bertrand 1659: # ac_fn_f77_try_compile LINENO
                   1660: # ----------------------------
                   1661: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1662: ac_fn_f77_try_compile ()
                   1663: {
                   1664:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1665:   rm -f conftest.$ac_objext
                   1666:   if { { ac_try="$ac_compile"
                   1667: case "(($ac_try" in
                   1668:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1669:   *) ac_try_echo=$ac_try;;
                   1670: esac
                   1671: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1672: $as_echo "$ac_try_echo"; } >&5
                   1673:   (eval "$ac_compile") 2>conftest.err
                   1674:   ac_status=$?
                   1675:   if test -s conftest.err; then
                   1676:     grep -v '^ *+' conftest.err >conftest.er1
                   1677:     cat conftest.er1 >&5
                   1678:     mv -f conftest.er1 conftest.err
                   1679:   fi
                   1680:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1681:   test $ac_status = 0; } && {
                   1682:     test -z "$ac_f77_werror_flag" ||
                   1683:     test ! -s conftest.err
                   1684:        } && test -s conftest.$ac_objext; then :
                   1685:   ac_retval=0
                   1686: else
                   1687:   $as_echo "$as_me: failed program was:" >&5
                   1688: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1689: 
1.15      bertrand 1690:    ac_retval=1
                   1691: fi
1.57      bertrand 1692:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1693:   as_fn_set_status $ac_retval
1.1       bertrand 1694: 
1.15      bertrand 1695: } # ac_fn_f77_try_compile
1.1       bertrand 1696: 
1.15      bertrand 1697: # ac_fn_fc_try_compile LINENO
                   1698: # ---------------------------
                   1699: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1700: ac_fn_fc_try_compile ()
                   1701: {
                   1702:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1703:   rm -f conftest.$ac_objext
                   1704:   if { { ac_try="$ac_compile"
                   1705: case "(($ac_try" in
                   1706:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1707:   *) ac_try_echo=$ac_try;;
                   1708: esac
                   1709: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1710: $as_echo "$ac_try_echo"; } >&5
                   1711:   (eval "$ac_compile") 2>conftest.err
                   1712:   ac_status=$?
                   1713:   if test -s conftest.err; then
                   1714:     grep -v '^ *+' conftest.err >conftest.er1
                   1715:     cat conftest.er1 >&5
                   1716:     mv -f conftest.er1 conftest.err
                   1717:   fi
                   1718:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1719:   test $ac_status = 0; } && {
                   1720:     test -z "$ac_fc_werror_flag" ||
                   1721:     test ! -s conftest.err
                   1722:        } && test -s conftest.$ac_objext; then :
                   1723:   ac_retval=0
                   1724: else
                   1725:   $as_echo "$as_me: failed program was:" >&5
                   1726: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1727: 
1.15      bertrand 1728:    ac_retval=1
                   1729: fi
1.57      bertrand 1730:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1731:   as_fn_set_status $ac_retval
1.1       bertrand 1732: 
1.15      bertrand 1733: } # ac_fn_fc_try_compile
1.1       bertrand 1734: 
1.15      bertrand 1735: # ac_fn_c_try_cpp LINENO
                   1736: # ----------------------
                   1737: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1738: ac_fn_c_try_cpp ()
                   1739: {
                   1740:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1741:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1742: case "(($ac_try" in
                   1743:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1744:   *) ac_try_echo=$ac_try;;
                   1745: esac
                   1746: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1747: $as_echo "$ac_try_echo"; } >&5
                   1748:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1749:   ac_status=$?
                   1750:   if test -s conftest.err; then
                   1751:     grep -v '^ *+' conftest.err >conftest.er1
                   1752:     cat conftest.er1 >&5
                   1753:     mv -f conftest.er1 conftest.err
                   1754:   fi
                   1755:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1756:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1757:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1758:     test ! -s conftest.err
                   1759:        }; then :
                   1760:   ac_retval=0
                   1761: else
                   1762:   $as_echo "$as_me: failed program was:" >&5
                   1763: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1764: 
1.15      bertrand 1765:     ac_retval=1
                   1766: fi
1.57      bertrand 1767:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1768:   as_fn_set_status $ac_retval
1.1       bertrand 1769: 
1.15      bertrand 1770: } # ac_fn_c_try_cpp
1.1       bertrand 1771: 
1.15      bertrand 1772: # ac_fn_c_try_link LINENO
                   1773: # -----------------------
                   1774: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1775: ac_fn_c_try_link ()
                   1776: {
                   1777:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1778:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1779:   if { { ac_try="$ac_link"
                   1780: case "(($ac_try" in
                   1781:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1782:   *) ac_try_echo=$ac_try;;
                   1783: esac
                   1784: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1785: $as_echo "$ac_try_echo"; } >&5
                   1786:   (eval "$ac_link") 2>conftest.err
                   1787:   ac_status=$?
                   1788:   if test -s conftest.err; then
                   1789:     grep -v '^ *+' conftest.err >conftest.er1
                   1790:     cat conftest.er1 >&5
                   1791:     mv -f conftest.er1 conftest.err
                   1792:   fi
                   1793:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1794:   test $ac_status = 0; } && {
                   1795:     test -z "$ac_c_werror_flag" ||
                   1796:     test ! -s conftest.err
                   1797:        } && test -s conftest$ac_exeext && {
                   1798:     test "$cross_compiling" = yes ||
                   1799:     $as_test_x conftest$ac_exeext
                   1800:        }; then :
                   1801:   ac_retval=0
                   1802: else
                   1803:   $as_echo "$as_me: failed program was:" >&5
                   1804: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1805: 
1.15      bertrand 1806:    ac_retval=1
                   1807: fi
                   1808:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1809:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1810:   # interfere with the next link command; also delete a directory that is
                   1811:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1812:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1813:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1814:   as_fn_set_status $ac_retval
1.1       bertrand 1815: 
1.15      bertrand 1816: } # ac_fn_c_try_link
1.1       bertrand 1817: 
1.15      bertrand 1818: # ac_fn_c_check_func LINENO FUNC VAR
                   1819: # ----------------------------------
                   1820: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1821: ac_fn_c_check_func ()
                   1822: {
                   1823:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1824:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1825: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1826: if eval \${$3+:} false; then :
1.15      bertrand 1827:   $as_echo_n "(cached) " >&6
                   1828: else
                   1829:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1830: /* end confdefs.h.  */
                   1831: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1832:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1833: #define $2 innocuous_$2
1.1       bertrand 1834: 
1.15      bertrand 1835: /* System header to define __stub macros and hopefully few prototypes,
                   1836:     which can conflict with char $2 (); below.
                   1837:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1838:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1839: 
1.15      bertrand 1840: #ifdef __STDC__
                   1841: # include <limits.h>
                   1842: #else
                   1843: # include <assert.h>
                   1844: #endif
1.1       bertrand 1845: 
1.15      bertrand 1846: #undef $2
1.1       bertrand 1847: 
1.15      bertrand 1848: /* Override any GCC internal prototype to avoid an error.
                   1849:    Use char because int might match the return type of a GCC
                   1850:    builtin and then its argument prototype would still apply.  */
                   1851: #ifdef __cplusplus
                   1852: extern "C"
                   1853: #endif
                   1854: char $2 ();
                   1855: /* The GNU C library defines this for functions which it implements
                   1856:     to always fail with ENOSYS.  Some functions are actually named
                   1857:     something starting with __ and the normal name is an alias.  */
                   1858: #if defined __stub_$2 || defined __stub___$2
                   1859: choke me
                   1860: #endif
1.1       bertrand 1861: 
1.15      bertrand 1862: int
                   1863: main ()
                   1864: {
                   1865: return $2 ();
                   1866:   ;
                   1867:   return 0;
                   1868: }
1.1       bertrand 1869: _ACEOF
1.15      bertrand 1870: if ac_fn_c_try_link "$LINENO"; then :
                   1871:   eval "$3=yes"
                   1872: else
                   1873:   eval "$3=no"
                   1874: fi
                   1875: rm -f core conftest.err conftest.$ac_objext \
                   1876:     conftest$ac_exeext conftest.$ac_ext
                   1877: fi
                   1878: eval ac_res=\$$3
                   1879:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1880: $as_echo "$ac_res" >&6; }
1.57      bertrand 1881:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1882: 
1.15      bertrand 1883: } # ac_fn_c_check_func
1.1       bertrand 1884: 
1.33      bertrand 1885: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1886: # -------------------------------------------
                   1887: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1888: # variable VAR accordingly.
                   1889: ac_fn_c_check_type ()
                   1890: {
                   1891:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1892:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1893: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1894: if eval \${$3+:} false; then :
1.33      bertrand 1895:   $as_echo_n "(cached) " >&6
                   1896: else
                   1897:   eval "$3=no"
                   1898:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1899: /* end confdefs.h.  */
                   1900: $4
                   1901: int
                   1902: main ()
                   1903: {
                   1904: if (sizeof ($2))
                   1905:     return 0;
                   1906:   ;
                   1907:   return 0;
                   1908: }
                   1909: _ACEOF
                   1910: if ac_fn_c_try_compile "$LINENO"; then :
                   1911:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1912: /* end confdefs.h.  */
                   1913: $4
                   1914: int
                   1915: main ()
                   1916: {
                   1917: if (sizeof (($2)))
                   1918:        return 0;
                   1919:   ;
                   1920:   return 0;
                   1921: }
                   1922: _ACEOF
                   1923: if ac_fn_c_try_compile "$LINENO"; then :
                   1924: 
                   1925: else
                   1926:   eval "$3=yes"
                   1927: fi
                   1928: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1929: fi
                   1930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1931: fi
                   1932: eval ac_res=\$$3
                   1933:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1934: $as_echo "$ac_res" >&6; }
1.57      bertrand 1935:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1936: 
                   1937: } # ac_fn_c_check_type
                   1938: 
1.15      bertrand 1939: # ac_fn_c_try_run LINENO
                   1940: # ----------------------
                   1941: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1942: # that executables *can* be run.
                   1943: ac_fn_c_try_run ()
                   1944: {
                   1945:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1946:   if { { ac_try="$ac_link"
                   1947: case "(($ac_try" in
                   1948:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1949:   *) ac_try_echo=$ac_try;;
                   1950: esac
                   1951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1952: $as_echo "$ac_try_echo"; } >&5
                   1953:   (eval "$ac_link") 2>&5
                   1954:   ac_status=$?
                   1955:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1956:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1957:   { { case "(($ac_try" in
                   1958:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1959:   *) ac_try_echo=$ac_try;;
                   1960: esac
                   1961: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1962: $as_echo "$ac_try_echo"; } >&5
                   1963:   (eval "$ac_try") 2>&5
                   1964:   ac_status=$?
                   1965:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1966:   test $ac_status = 0; }; }; then :
                   1967:   ac_retval=0
                   1968: else
                   1969:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1970:        $as_echo "$as_me: failed program was:" >&5
                   1971: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1972: 
1.15      bertrand 1973:        ac_retval=$ac_status
                   1974: fi
                   1975:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1976:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1977:   as_fn_set_status $ac_retval
1.1       bertrand 1978: 
1.15      bertrand 1979: } # ac_fn_c_try_run
1.1       bertrand 1980: 
1.15      bertrand 1981: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1982: # --------------------------------------------
                   1983: # Tries to find the compile-time value of EXPR in a program that includes
                   1984: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1985: # computed
                   1986: ac_fn_c_compute_int ()
                   1987: {
                   1988:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1989:   if test "$cross_compiling" = yes; then
                   1990:     # Depending upon the size, compute the lo and hi bounds.
                   1991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1992: /* end confdefs.h.  */
                   1993: $4
                   1994: int
                   1995: main ()
                   1996: {
                   1997: static int test_array [1 - 2 * !(($2) >= 0)];
                   1998: test_array [0] = 0
1.1       bertrand 1999: 
1.15      bertrand 2000:   ;
                   2001:   return 0;
                   2002: }
1.1       bertrand 2003: _ACEOF
1.15      bertrand 2004: if ac_fn_c_try_compile "$LINENO"; then :
                   2005:   ac_lo=0 ac_mid=0
                   2006:   while :; do
                   2007:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2008: /* end confdefs.h.  */
                   2009: $4
                   2010: int
                   2011: main ()
                   2012: {
                   2013: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2014: test_array [0] = 0
1.1       bertrand 2015: 
1.15      bertrand 2016:   ;
                   2017:   return 0;
                   2018: }
                   2019: _ACEOF
                   2020: if ac_fn_c_try_compile "$LINENO"; then :
                   2021:   ac_hi=$ac_mid; break
                   2022: else
                   2023:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2024:            if test $ac_lo -le $ac_mid; then
                   2025:              ac_lo= ac_hi=
                   2026:              break
                   2027:            fi
                   2028:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2029: fi
                   2030: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2031:   done
                   2032: else
                   2033:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2034: /* end confdefs.h.  */
                   2035: $4
                   2036: int
                   2037: main ()
                   2038: {
                   2039: static int test_array [1 - 2 * !(($2) < 0)];
                   2040: test_array [0] = 0
1.1       bertrand 2041: 
1.15      bertrand 2042:   ;
                   2043:   return 0;
                   2044: }
1.1       bertrand 2045: _ACEOF
1.15      bertrand 2046: if ac_fn_c_try_compile "$LINENO"; then :
                   2047:   ac_hi=-1 ac_mid=-1
                   2048:   while :; do
                   2049:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2050: /* end confdefs.h.  */
                   2051: $4
                   2052: int
                   2053: main ()
                   2054: {
                   2055: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2056: test_array [0] = 0
1.1       bertrand 2057: 
1.15      bertrand 2058:   ;
                   2059:   return 0;
                   2060: }
                   2061: _ACEOF
                   2062: if ac_fn_c_try_compile "$LINENO"; then :
                   2063:   ac_lo=$ac_mid; break
                   2064: else
                   2065:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2066:            if test $ac_mid -le $ac_hi; then
                   2067:              ac_lo= ac_hi=
                   2068:              break
                   2069:            fi
                   2070:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2071: fi
                   2072: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2073:   done
1.1       bertrand 2074: else
1.15      bertrand 2075:   ac_lo= ac_hi=
                   2076: fi
                   2077: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2078: fi
1.15      bertrand 2079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2080: # Binary search between lo and hi bounds.
                   2081: while test "x$ac_lo" != "x$ac_hi"; do
                   2082:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2083:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2084: /* end confdefs.h.  */
                   2085: $4
                   2086: int
                   2087: main ()
                   2088: {
                   2089: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2090: test_array [0] = 0
1.1       bertrand 2091: 
1.15      bertrand 2092:   ;
                   2093:   return 0;
                   2094: }
                   2095: _ACEOF
                   2096: if ac_fn_c_try_compile "$LINENO"; then :
                   2097:   ac_hi=$ac_mid
1.1       bertrand 2098: else
1.15      bertrand 2099:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2100: fi
1.15      bertrand 2101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2102: done
                   2103: case $ac_lo in #((
                   2104: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2105: '') ac_retval=1 ;;
                   2106: esac
                   2107:   else
                   2108:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2109: /* end confdefs.h.  */
                   2110: $4
                   2111: static long int longval () { return $2; }
                   2112: static unsigned long int ulongval () { return $2; }
                   2113: #include <stdio.h>
                   2114: #include <stdlib.h>
                   2115: int
                   2116: main ()
                   2117: {
1.1       bertrand 2118: 
1.15      bertrand 2119:   FILE *f = fopen ("conftest.val", "w");
                   2120:   if (! f)
                   2121:     return 1;
                   2122:   if (($2) < 0)
                   2123:     {
                   2124:       long int i = longval ();
                   2125:       if (i != ($2))
                   2126:    return 1;
                   2127:       fprintf (f, "%ld", i);
                   2128:     }
                   2129:   else
                   2130:     {
                   2131:       unsigned long int i = ulongval ();
                   2132:       if (i != ($2))
                   2133:    return 1;
                   2134:       fprintf (f, "%lu", i);
                   2135:     }
                   2136:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2137:      on some platforms.  */
                   2138:   return ferror (f) || fclose (f) != 0;
                   2139: 
                   2140:   ;
                   2141:   return 0;
                   2142: }
                   2143: _ACEOF
                   2144: if ac_fn_c_try_run "$LINENO"; then :
                   2145:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2146: else
                   2147:   ac_retval=1
1.14      bertrand 2148: fi
1.15      bertrand 2149: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2150:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2151: rm -f conftest.val
1.14      bertrand 2152: 
1.15      bertrand 2153:   fi
1.57      bertrand 2154:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2155:   as_fn_set_status $ac_retval
1.14      bertrand 2156: 
1.15      bertrand 2157: } # ac_fn_c_compute_int
1.1       bertrand 2158: 
1.15      bertrand 2159: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2160: # -------------------------------------------------------
                   2161: # Tests whether HEADER exists and can be compiled using the include files in
                   2162: # INCLUDES, setting the cache variable VAR accordingly.
                   2163: ac_fn_c_check_header_compile ()
                   2164: {
                   2165:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2166:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2167: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2168: if eval \${$3+:} false; then :
1.15      bertrand 2169:   $as_echo_n "(cached) " >&6
                   2170: else
                   2171:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2172: /* end confdefs.h.  */
                   2173: $4
                   2174: #include <$2>
                   2175: _ACEOF
                   2176: if ac_fn_c_try_compile "$LINENO"; then :
                   2177:   eval "$3=yes"
                   2178: else
                   2179:   eval "$3=no"
                   2180: fi
                   2181: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2182: fi
                   2183: eval ac_res=\$$3
                   2184:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2185: $as_echo "$ac_res" >&6; }
1.57      bertrand 2186:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2187: 
1.15      bertrand 2188: } # ac_fn_c_check_header_compile
1.1       bertrand 2189: 
1.15      bertrand 2190: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2191: # -------------------------------------------------------
                   2192: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2193: # the include files in INCLUDES and setting the cache variable VAR
                   2194: # accordingly.
                   2195: ac_fn_c_check_header_mongrel ()
                   2196: {
                   2197:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2198:   if eval \${$3+:} false; then :
1.15      bertrand 2199:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2200: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2201: if eval \${$3+:} false; then :
1.15      bertrand 2202:   $as_echo_n "(cached) " >&6
                   2203: fi
                   2204: eval ac_res=\$$3
                   2205:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2206: $as_echo "$ac_res" >&6; }
                   2207: else
                   2208:   # Is the header compilable?
                   2209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2210: $as_echo_n "checking $2 usability... " >&6; }
                   2211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2212: /* end confdefs.h.  */
                   2213: $4
                   2214: #include <$2>
                   2215: _ACEOF
                   2216: if ac_fn_c_try_compile "$LINENO"; then :
                   2217:   ac_header_compiler=yes
                   2218: else
                   2219:   ac_header_compiler=no
                   2220: fi
                   2221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2223: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2224: 
1.15      bertrand 2225: # Is the header present?
                   2226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2227: $as_echo_n "checking $2 presence... " >&6; }
                   2228: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2229: /* end confdefs.h.  */
                   2230: #include <$2>
                   2231: _ACEOF
                   2232: if ac_fn_c_try_cpp "$LINENO"; then :
                   2233:   ac_header_preproc=yes
                   2234: else
                   2235:   ac_header_preproc=no
                   2236: fi
1.36      bertrand 2237: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2239: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2240: 
1.15      bertrand 2241: # So?  What about this header?
                   2242: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2243:   yes:no: )
                   2244:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2245: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2246:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2247: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2248:     ;;
                   2249:   no:yes:* )
                   2250:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2251: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2252:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2253: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2254:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2255: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2256:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2257: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2258:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2259: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2260:     ;;
                   2261: esac
                   2262:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2263: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2264: if eval \${$3+:} false; then :
1.15      bertrand 2265:   $as_echo_n "(cached) " >&6
                   2266: else
                   2267:   eval "$3=\$ac_header_compiler"
                   2268: fi
                   2269: eval ac_res=\$$3
                   2270:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2271: $as_echo "$ac_res" >&6; }
                   2272: fi
1.57      bertrand 2273:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2274: 
1.15      bertrand 2275: } # ac_fn_c_check_header_mongrel
                   2276: cat >config.log <<_ACEOF
                   2277: This file contains any messages produced by compilers while
                   2278: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2279: 
1.73      bertrand 2280: It was created by rpl $as_me 4.1.3, which was
1.57      bertrand 2281: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2282: 
1.15      bertrand 2283:   $ $0 $@
1.1       bertrand 2284: 
1.15      bertrand 2285: _ACEOF
                   2286: exec 5>>config.log
                   2287: {
                   2288: cat <<_ASUNAME
                   2289: ## --------- ##
                   2290: ## Platform. ##
                   2291: ## --------- ##
1.1       bertrand 2292: 
1.15      bertrand 2293: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2294: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2295: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2296: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2297: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2298: 
1.15      bertrand 2299: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2300: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2301: 
1.15      bertrand 2302: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2303: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2304: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2305: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2306: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2307: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2308: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2309: 
1.15      bertrand 2310: _ASUNAME
1.1       bertrand 2311: 
1.15      bertrand 2312: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2313: for as_dir in $PATH
                   2314: do
                   2315:   IFS=$as_save_IFS
                   2316:   test -z "$as_dir" && as_dir=.
                   2317:     $as_echo "PATH: $as_dir"
                   2318:   done
                   2319: IFS=$as_save_IFS
1.1       bertrand 2320: 
1.15      bertrand 2321: } >&5
1.1       bertrand 2322: 
1.15      bertrand 2323: cat >&5 <<_ACEOF
1.1       bertrand 2324: 
                   2325: 
1.15      bertrand 2326: ## ----------- ##
                   2327: ## Core tests. ##
                   2328: ## ----------- ##
1.1       bertrand 2329: 
1.15      bertrand 2330: _ACEOF
1.1       bertrand 2331: 
                   2332: 
1.15      bertrand 2333: # Keep a trace of the command line.
                   2334: # Strip out --no-create and --no-recursion so they do not pile up.
                   2335: # Strip out --silent because we don't want to record it for future runs.
                   2336: # Also quote any args containing shell meta-characters.
                   2337: # Make two passes to allow for proper duplicate-argument suppression.
                   2338: ac_configure_args=
                   2339: ac_configure_args0=
                   2340: ac_configure_args1=
                   2341: ac_must_keep_next=false
                   2342: for ac_pass in 1 2
                   2343: do
                   2344:   for ac_arg
                   2345:   do
                   2346:     case $ac_arg in
                   2347:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2348:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2349:     | -silent | --silent | --silen | --sile | --sil)
                   2350:       continue ;;
                   2351:     *\'*)
                   2352:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2353:     esac
                   2354:     case $ac_pass in
                   2355:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2356:     2)
                   2357:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2358:       if test $ac_must_keep_next = true; then
                   2359:    ac_must_keep_next=false # Got value, back to normal.
                   2360:       else
                   2361:    case $ac_arg in
                   2362:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2363:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2364:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2365:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2366:        case "$ac_configure_args0 " in
                   2367:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2368:        esac
                   2369:        ;;
                   2370:      -* ) ac_must_keep_next=true ;;
                   2371:    esac
                   2372:       fi
                   2373:       as_fn_append ac_configure_args " '$ac_arg'"
                   2374:       ;;
                   2375:     esac
                   2376:   done
                   2377: done
                   2378: { ac_configure_args0=; unset ac_configure_args0;}
                   2379: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2380: 
1.15      bertrand 2381: # When interrupted or exit'd, cleanup temporary files, and complete
                   2382: # config.log.  We remove comments because anyway the quotes in there
                   2383: # would cause problems or look ugly.
                   2384: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2385: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2386: trap 'exit_status=$?
                   2387:   # Save into config.log some information that might help in debugging.
                   2388:   {
                   2389:     echo
1.1       bertrand 2390: 
1.36      bertrand 2391:     $as_echo "## ---------------- ##
1.15      bertrand 2392: ## Cache variables. ##
1.36      bertrand 2393: ## ---------------- ##"
1.15      bertrand 2394:     echo
                   2395:     # The following way of writing the cache mishandles newlines in values,
                   2396: (
                   2397:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2398:     eval ac_val=\$$ac_var
                   2399:     case $ac_val in #(
                   2400:     *${as_nl}*)
                   2401:       case $ac_var in #(
                   2402:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2403: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2404:       esac
                   2405:       case $ac_var in #(
                   2406:       _ | IFS | as_nl) ;; #(
                   2407:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2408:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2409:       esac ;;
                   2410:     esac
                   2411:   done
                   2412:   (set) 2>&1 |
                   2413:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2414:     *${as_nl}ac_space=\ *)
                   2415:       sed -n \
                   2416:    "s/'\''/'\''\\\\'\'''\''/g;
                   2417:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2418:       ;; #(
                   2419:     *)
                   2420:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2421:       ;;
                   2422:     esac |
                   2423:     sort
                   2424: )
                   2425:     echo
1.1       bertrand 2426: 
1.36      bertrand 2427:     $as_echo "## ----------------- ##
1.15      bertrand 2428: ## Output variables. ##
1.36      bertrand 2429: ## ----------------- ##"
1.15      bertrand 2430:     echo
                   2431:     for ac_var in $ac_subst_vars
                   2432:     do
                   2433:       eval ac_val=\$$ac_var
                   2434:       case $ac_val in
                   2435:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2436:       esac
                   2437:       $as_echo "$ac_var='\''$ac_val'\''"
                   2438:     done | sort
                   2439:     echo
1.1       bertrand 2440: 
1.15      bertrand 2441:     if test -n "$ac_subst_files"; then
1.36      bertrand 2442:       $as_echo "## ------------------- ##
1.15      bertrand 2443: ## File substitutions. ##
1.36      bertrand 2444: ## ------------------- ##"
1.15      bertrand 2445:       echo
                   2446:       for ac_var in $ac_subst_files
                   2447:       do
                   2448:    eval ac_val=\$$ac_var
                   2449:    case $ac_val in
                   2450:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2451:    esac
                   2452:    $as_echo "$ac_var='\''$ac_val'\''"
                   2453:       done | sort
                   2454:       echo
1.14      bertrand 2455:     fi
                   2456: 
1.15      bertrand 2457:     if test -s confdefs.h; then
1.36      bertrand 2458:       $as_echo "## ----------- ##
1.15      bertrand 2459: ## confdefs.h. ##
1.36      bertrand 2460: ## ----------- ##"
1.15      bertrand 2461:       echo
                   2462:       cat confdefs.h
                   2463:       echo
                   2464:     fi
                   2465:     test "$ac_signal" != 0 &&
                   2466:       $as_echo "$as_me: caught signal $ac_signal"
                   2467:     $as_echo "$as_me: exit $exit_status"
                   2468:   } >&5
                   2469:   rm -f core *.core core.conftest.* &&
                   2470:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2471:     exit $exit_status
                   2472: ' 0
                   2473: for ac_signal in 1 2 13 15; do
                   2474:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2475: done
                   2476: ac_signal=0
1.14      bertrand 2477: 
1.15      bertrand 2478: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2479: rm -f -r conftest* confdefs.h
1.14      bertrand 2480: 
1.15      bertrand 2481: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2482: 
1.15      bertrand 2483: # Predefined preprocessor variables.
1.14      bertrand 2484: 
1.15      bertrand 2485: cat >>confdefs.h <<_ACEOF
                   2486: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2487: _ACEOF
1.14      bertrand 2488: 
1.15      bertrand 2489: cat >>confdefs.h <<_ACEOF
                   2490: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2491: _ACEOF
                   2492: 
1.15      bertrand 2493: cat >>confdefs.h <<_ACEOF
                   2494: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2495: _ACEOF
1.14      bertrand 2496: 
1.15      bertrand 2497: cat >>confdefs.h <<_ACEOF
                   2498: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2499: _ACEOF
                   2500: 
1.15      bertrand 2501: cat >>confdefs.h <<_ACEOF
                   2502: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2503: _ACEOF
1.14      bertrand 2504: 
1.15      bertrand 2505: cat >>confdefs.h <<_ACEOF
                   2506: #define PACKAGE_URL "$PACKAGE_URL"
                   2507: _ACEOF
1.14      bertrand 2508: 
                   2509: 
1.15      bertrand 2510: # Let the site file select an alternate cache file if it wants to.
                   2511: # Prefer an explicitly selected file to automatically selected ones.
                   2512: ac_site_file1=NONE
                   2513: ac_site_file2=NONE
                   2514: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2515:   # We do not want a PATH search for config.site.
                   2516:   case $CONFIG_SITE in #((
                   2517:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2518:     */*) ac_site_file1=$CONFIG_SITE;;
                   2519:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2520:   esac
1.15      bertrand 2521: elif test "x$prefix" != xNONE; then
                   2522:   ac_site_file1=$prefix/share/config.site
                   2523:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2524: else
1.15      bertrand 2525:   ac_site_file1=$ac_default_prefix/share/config.site
                   2526:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2527: fi
1.15      bertrand 2528: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2529: do
                   2530:   test "x$ac_site_file" = xNONE && continue
                   2531:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2532:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2533: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2534:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2535:     . "$ac_site_file" \
                   2536:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2537: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2538: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2539: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2540:   fi
                   2541: done
1.14      bertrand 2542: 
1.15      bertrand 2543: if test -r "$cache_file"; then
                   2544:   # Some versions of bash will fail to source /dev/null (special files
                   2545:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2546:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2547:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2548: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2549:     case $cache_file in
                   2550:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2551:       *)                      . "./$cache_file";;
                   2552:     esac
                   2553:   fi
1.14      bertrand 2554: else
1.15      bertrand 2555:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2556: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2557:   >$cache_file
1.14      bertrand 2558: fi
                   2559: 
1.15      bertrand 2560: # Check that the precious variables saved in the cache have kept the same
                   2561: # value.
                   2562: ac_cache_corrupted=false
                   2563: for ac_var in $ac_precious_vars; do
                   2564:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2565:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2566:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2567:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2568:   case $ac_old_set,$ac_new_set in
                   2569:     set,)
                   2570:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2571: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2572:       ac_cache_corrupted=: ;;
                   2573:     ,set)
                   2574:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2575: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2576:       ac_cache_corrupted=: ;;
                   2577:     ,);;
                   2578:     *)
                   2579:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2580:    # differences in whitespace do not lead to failure.
                   2581:    ac_old_val_w=`echo x $ac_old_val`
                   2582:    ac_new_val_w=`echo x $ac_new_val`
                   2583:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2584:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2585: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2586:      ac_cache_corrupted=:
                   2587:    else
                   2588:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2589: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2590:      eval $ac_var=\$ac_old_val
                   2591:    fi
                   2592:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2593: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2594:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2595: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2596:       fi;;
                   2597:   esac
                   2598:   # Pass precious variables to config.status.
                   2599:   if test "$ac_new_set" = set; then
                   2600:     case $ac_new_val in
                   2601:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2602:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2603:     esac
                   2604:     case " $ac_configure_args " in
                   2605:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2606:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2607:     esac
1.14      bertrand 2608:   fi
                   2609: done
1.15      bertrand 2610: if $ac_cache_corrupted; then
                   2611:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2612: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2613:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2614: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2615:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2616: fi
                   2617: ## -------------------- ##
                   2618: ## Main body of script. ##
                   2619: ## -------------------- ##
1.14      bertrand 2620: 
1.15      bertrand 2621: ac_ext=c
                   2622: ac_cpp='$CPP $CPPFLAGS'
                   2623: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2624: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2625: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2626: 
                   2627: 
1.15      bertrand 2628: ac_aux_dir=
                   2629: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2630:   if test -f "$ac_dir/install-sh"; then
                   2631:     ac_aux_dir=$ac_dir
                   2632:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2633:     break
                   2634:   elif test -f "$ac_dir/install.sh"; then
                   2635:     ac_aux_dir=$ac_dir
                   2636:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2637:     break
                   2638:   elif test -f "$ac_dir/shtool"; then
                   2639:     ac_aux_dir=$ac_dir
                   2640:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2641:     break
                   2642:   fi
1.14      bertrand 2643: done
1.15      bertrand 2644: if test -z "$ac_aux_dir"; then
1.36      bertrand 2645:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2646: fi
1.14      bertrand 2647: 
1.15      bertrand 2648: # These three variables are undocumented and unsupported,
                   2649: # and are intended to be withdrawn in a future Autoconf release.
                   2650: # They can cause serious problems if a builder's source tree is in a directory
                   2651: # whose full name contains unusual characters.
                   2652: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2653: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2654: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2655: 
                   2656: 
1.15      bertrand 2657: # Make sure we can run config.sub.
                   2658: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2659:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2660: 
1.15      bertrand 2661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2662: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2663: if ${ac_cv_build+:} false; then :
1.15      bertrand 2664:   $as_echo_n "(cached) " >&6
1.14      bertrand 2665: else
1.15      bertrand 2666:   ac_build_alias=$build_alias
                   2667: test "x$ac_build_alias" = x &&
                   2668:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2669: test "x$ac_build_alias" = x &&
1.36      bertrand 2670:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2671: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2672:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2673: 
                   2674: fi
1.15      bertrand 2675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2676: $as_echo "$ac_cv_build" >&6; }
                   2677: case $ac_cv_build in
                   2678: *-*-*) ;;
1.57      bertrand 2679: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2680: esac
                   2681: build=$ac_cv_build
                   2682: ac_save_IFS=$IFS; IFS='-'
                   2683: set x $ac_cv_build
                   2684: shift
                   2685: build_cpu=$1
                   2686: build_vendor=$2
                   2687: shift; shift
                   2688: # Remember, the first character of IFS is used to create $*,
                   2689: # except with old shells:
                   2690: build_os=$*
                   2691: IFS=$ac_save_IFS
                   2692: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2693: 
                   2694: 
1.15      bertrand 2695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2696: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2697: if ${ac_cv_host+:} false; then :
1.15      bertrand 2698:   $as_echo_n "(cached) " >&6
1.14      bertrand 2699: else
1.15      bertrand 2700:   if test "x$host_alias" = x; then
                   2701:   ac_cv_host=$ac_cv_build
1.14      bertrand 2702: else
1.15      bertrand 2703:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2704:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2705: fi
                   2706: 
                   2707: fi
1.15      bertrand 2708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2709: $as_echo "$ac_cv_host" >&6; }
                   2710: case $ac_cv_host in
                   2711: *-*-*) ;;
1.57      bertrand 2712: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2713: esac
                   2714: host=$ac_cv_host
                   2715: ac_save_IFS=$IFS; IFS='-'
                   2716: set x $ac_cv_host
                   2717: shift
                   2718: host_cpu=$1
                   2719: host_vendor=$2
                   2720: shift; shift
                   2721: # Remember, the first character of IFS is used to create $*,
                   2722: # except with old shells:
                   2723: host_os=$*
                   2724: IFS=$ac_save_IFS
                   2725: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2726: 
                   2727: 
1.15      bertrand 2728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2729: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2730: if ${ac_cv_target+:} false; then :
1.15      bertrand 2731:   $as_echo_n "(cached) " >&6
                   2732: else
                   2733:   if test "x$target_alias" = x; then
                   2734:   ac_cv_target=$ac_cv_host
1.14      bertrand 2735: else
1.15      bertrand 2736:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2737:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2738: fi
1.14      bertrand 2739: 
                   2740: fi
1.15      bertrand 2741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2742: $as_echo "$ac_cv_target" >&6; }
                   2743: case $ac_cv_target in
                   2744: *-*-*) ;;
1.57      bertrand 2745: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2746: esac
                   2747: target=$ac_cv_target
                   2748: ac_save_IFS=$IFS; IFS='-'
                   2749: set x $ac_cv_target
                   2750: shift
                   2751: target_cpu=$1
                   2752: target_vendor=$2
                   2753: shift; shift
                   2754: # Remember, the first character of IFS is used to create $*,
                   2755: # except with old shells:
                   2756: target_os=$*
                   2757: IFS=$ac_save_IFS
                   2758: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2759: 
1.14      bertrand 2760: 
1.15      bertrand 2761: # The aliases save the names the user supplied, while $host etc.
                   2762: # will get canonicalized.
                   2763: test -n "$target_alias" &&
                   2764:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2765:     NONENONEs,x,x, &&
                   2766:   program_prefix=${target_alias}-
1.1       bertrand 2767: 
1.15      bertrand 2768: am__api_version='1.11'
1.1       bertrand 2769: 
1.14      bertrand 2770: # Find a good install program.  We prefer a C program (faster),
                   2771: # so one script is as good as another.  But avoid the broken or
                   2772: # incompatible versions:
                   2773: # SysV /etc/install, /usr/sbin/install
                   2774: # SunOS /usr/etc/install
                   2775: # IRIX /sbin/install
                   2776: # AIX /bin/install
                   2777: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2778: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2779: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2780: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2781: # OS/2's system install, which has a completely different semantic
                   2782: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2783: # Reject install programs that cannot install multiple files.
                   2784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2785: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2786: if test -z "$INSTALL"; then
1.57      bertrand 2787: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2788:   $as_echo_n "(cached) " >&6
1.14      bertrand 2789: else
                   2790:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2791: for as_dir in $PATH
                   2792: do
                   2793:   IFS=$as_save_IFS
                   2794:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2795:     # Account for people who put trailing slashes in PATH elements.
                   2796: case $as_dir/ in #((
                   2797:   ./ | .// | /[cC]/* | \
1.14      bertrand 2798:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2799:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2800:   /usr/ucb/* ) ;;
                   2801:   *)
                   2802:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2803:     # Don't use installbsd from OSF since it installs stuff as root
                   2804:     # by default.
                   2805:     for ac_prog in ginstall scoinst install; do
                   2806:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2807:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2808:      if test $ac_prog = install &&
                   2809:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2810:        # AIX install.  It has an incompatible calling convention.
                   2811:        :
                   2812:      elif test $ac_prog = install &&
                   2813:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2814:        # program-specific install script used by HP pwplus--don't use.
                   2815:        :
                   2816:      else
1.15      bertrand 2817:        rm -rf conftest.one conftest.two conftest.dir
                   2818:        echo one > conftest.one
                   2819:        echo two > conftest.two
                   2820:        mkdir conftest.dir
                   2821:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2822:          test -s conftest.one && test -s conftest.two &&
                   2823:          test -s conftest.dir/conftest.one &&
                   2824:          test -s conftest.dir/conftest.two
                   2825:        then
                   2826:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2827:          break 3
                   2828:        fi
1.14      bertrand 2829:      fi
                   2830:    fi
                   2831:       done
                   2832:     done
                   2833:     ;;
                   2834: esac
1.15      bertrand 2835: 
                   2836:   done
1.14      bertrand 2837: IFS=$as_save_IFS
1.1       bertrand 2838: 
1.15      bertrand 2839: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2840: 
1.14      bertrand 2841: fi
                   2842:   if test "${ac_cv_path_install+set}" = set; then
                   2843:     INSTALL=$ac_cv_path_install
                   2844:   else
                   2845:     # As a last resort, use the slow shell script.  Don't cache a
                   2846:     # value for INSTALL within a source directory, because that will
                   2847:     # break other packages using the cache if that directory is
                   2848:     # removed, or if the value is a relative name.
                   2849:     INSTALL=$ac_install_sh
                   2850:   fi
                   2851: fi
1.15      bertrand 2852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2853: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2854: 
1.14      bertrand 2855: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2856: # It thinks the first close brace ends the variable substitution.
                   2857: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2858: 
1.14      bertrand 2859: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2860: 
1.14      bertrand 2861: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2862: 
1.15      bertrand 2863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2864: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2865: # Just in case
                   2866: sleep 1
                   2867: echo timestamp > conftest.file
                   2868: # Reject unsafe characters in $srcdir or the absolute working directory
                   2869: # name.  Accept space and tab only in the latter.
                   2870: am_lf='
                   2871: '
                   2872: case `pwd` in
                   2873:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2874:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2875: esac
                   2876: case $srcdir in
                   2877:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2878:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2879: esac
                   2880: 
                   2881: # Do `set' in a subshell so we don't clobber the current shell's
                   2882: # arguments.  Must try -L first in case configure is actually a
                   2883: # symlink; some systems play weird games with the mod time of symlinks
                   2884: # (eg FreeBSD returns the mod time of the symlink's containing
                   2885: # directory).
                   2886: if (
                   2887:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2888:    if test "$*" = "X"; then
                   2889:       # -L didn't work.
                   2890:       set X `ls -t "$srcdir/configure" conftest.file`
                   2891:    fi
                   2892:    rm -f conftest.file
                   2893:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2894:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2895: 
                   2896:       # If neither matched, then we have a broken ls.  This can happen
                   2897:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2898:       # broken ls alias from the environment.  This has actually
                   2899:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2900:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2901: alias in your environment" "$LINENO" 5
                   2902:    fi
                   2903: 
                   2904:    test "$2" = conftest.file
                   2905:    )
                   2906: then
                   2907:    # Ok.
                   2908:    :
1.14      bertrand 2909: else
1.36      bertrand 2910:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2911: Check your system clock" "$LINENO" 5
1.14      bertrand 2912: fi
1.15      bertrand 2913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2914: $as_echo "yes" >&6; }
                   2915: test "$program_prefix" != NONE &&
                   2916:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2917: # Use a double $ so make ignores it.
                   2918: test "$program_suffix" != NONE &&
                   2919:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2920: # Double any \ or $.
                   2921: # By default was `s,x,x', remove it if useless.
                   2922: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2923: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2924: 
                   2925: # expand $ac_aux_dir to an absolute path
                   2926: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2927: 
1.15      bertrand 2928: if test x"${MISSING+set}" != xset; then
                   2929:   case $am_aux_dir in
                   2930:   *\ * | *\    *)
                   2931:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2932:   *)
1.15      bertrand 2933:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2934:   esac
1.14      bertrand 2935: fi
1.15      bertrand 2936: # Use eval to expand $SHELL
                   2937: if eval "$MISSING --run true"; then
                   2938:   am_missing_run="$MISSING --run "
1.14      bertrand 2939: else
1.15      bertrand 2940:   am_missing_run=
                   2941:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2942: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2943: fi
                   2944: 
                   2945: if test x"${install_sh}" != xset; then
                   2946:   case $am_aux_dir in
                   2947:   *\ * | *\    *)
                   2948:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2949:   *)
                   2950:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2951:   esac
1.14      bertrand 2952: fi
1.15      bertrand 2953: 
                   2954: # Installed binaries are usually stripped using `strip' when the user
                   2955: # run `make install-strip'.  However `strip' might not be the right
                   2956: # tool to use in cross-compilation environments, therefore Automake
                   2957: # will honor the `STRIP' environment variable to overrule this program.
                   2958: if test "$cross_compiling" != no; then
                   2959:   if test -n "$ac_tool_prefix"; then
                   2960:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2961: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2963: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2964: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2965:   $as_echo_n "(cached) " >&6
1.14      bertrand 2966: else
1.15      bertrand 2967:   if test -n "$STRIP"; then
                   2968:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2969: else
                   2970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2971: for as_dir in $PATH
                   2972: do
                   2973:   IFS=$as_save_IFS
                   2974:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2975:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2976:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2977:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2978:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2979:     break 2
                   2980:   fi
                   2981: done
1.15      bertrand 2982:   done
1.14      bertrand 2983: IFS=$as_save_IFS
1.1       bertrand 2984: 
1.14      bertrand 2985: fi
                   2986: fi
1.15      bertrand 2987: STRIP=$ac_cv_prog_STRIP
                   2988: if test -n "$STRIP"; then
                   2989:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2990: $as_echo "$STRIP" >&6; }
1.14      bertrand 2991: else
1.15      bertrand 2992:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2993: $as_echo "no" >&6; }
1.14      bertrand 2994: fi
1.1       bertrand 2995: 
                   2996: 
1.14      bertrand 2997: fi
1.15      bertrand 2998: if test -z "$ac_cv_prog_STRIP"; then
                   2999:   ac_ct_STRIP=$STRIP
                   3000:   # Extract the first word of "strip", so it can be a program name with args.
                   3001: set dummy strip; ac_word=$2
                   3002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3003: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3004: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3005:   $as_echo_n "(cached) " >&6
1.14      bertrand 3006: else
1.15      bertrand 3007:   if test -n "$ac_ct_STRIP"; then
                   3008:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3009: else
1.14      bertrand 3010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3011: for as_dir in $PATH
1.1       bertrand 3012: do
1.14      bertrand 3013:   IFS=$as_save_IFS
                   3014:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3015:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3016:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3017:     ac_cv_prog_ac_ct_STRIP="strip"
                   3018:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3019:     break 2
1.1       bertrand 3020:   fi
                   3021: done
1.15      bertrand 3022:   done
1.14      bertrand 3023: IFS=$as_save_IFS
1.1       bertrand 3024: 
1.14      bertrand 3025: fi
                   3026: fi
1.15      bertrand 3027: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3028: if test -n "$ac_ct_STRIP"; then
                   3029:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3030: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3031: else
1.15      bertrand 3032:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3033: $as_echo "no" >&6; }
1.1       bertrand 3034: fi
                   3035: 
1.15      bertrand 3036:   if test "x$ac_ct_STRIP" = x; then
                   3037:     STRIP=":"
1.14      bertrand 3038:   else
                   3039:     case $cross_compiling:$ac_tool_warned in
                   3040: yes:)
1.15      bertrand 3041: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3042: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3043: ac_tool_warned=yes ;;
                   3044: esac
1.15      bertrand 3045:     STRIP=$ac_ct_STRIP
1.1       bertrand 3046:   fi
1.14      bertrand 3047: else
1.15      bertrand 3048:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3049: fi
                   3050: 
1.15      bertrand 3051: fi
                   3052: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3053: 
1.15      bertrand 3054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3055: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3056: if test -z "$MKDIR_P"; then
1.57      bertrand 3057:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3058:   $as_echo_n "(cached) " >&6
1.14      bertrand 3059: else
1.15      bertrand 3060:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3061: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3062: do
                   3063:   IFS=$as_save_IFS
                   3064:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3065:     for ac_prog in mkdir gmkdir; do
                   3066:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3067:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3068:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3069:         'mkdir (GNU coreutils) '* | \
                   3070:         'mkdir (coreutils) '* | \
                   3071:         'mkdir (fileutils) '4.1*)
                   3072:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3073:           break 3;;
                   3074:       esac
                   3075:     done
                   3076:        done
                   3077:   done
1.14      bertrand 3078: IFS=$as_save_IFS
1.1       bertrand 3079: 
                   3080: fi
1.15      bertrand 3081: 
                   3082:   test -d ./--version && rmdir ./--version
                   3083:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3084:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3085:   else
                   3086:     # As a last resort, use the slow shell script.  Don't cache a
                   3087:     # value for MKDIR_P within a source directory, because that will
                   3088:     # break other packages using the cache if that directory is
                   3089:     # removed, or if the value is a relative name.
                   3090:     MKDIR_P="$ac_install_sh -d"
                   3091:   fi
1.14      bertrand 3092: fi
1.15      bertrand 3093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3094: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3095: 
1.15      bertrand 3096: mkdir_p="$MKDIR_P"
                   3097: case $mkdir_p in
                   3098:   [\\/$]* | ?:[\\/]*) ;;
                   3099:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3100: esac
1.1       bertrand 3101: 
1.15      bertrand 3102: for ac_prog in gawk mawk nawk awk
                   3103: do
                   3104:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3105: set dummy $ac_prog; ac_word=$2
                   3106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3107: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3108: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3109:   $as_echo_n "(cached) " >&6
1.1       bertrand 3110: else
1.15      bertrand 3111:   if test -n "$AWK"; then
                   3112:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3113: else
1.14      bertrand 3114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3115: for as_dir in $PATH
                   3116: do
                   3117:   IFS=$as_save_IFS
                   3118:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3119:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3120:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3121:     ac_cv_prog_AWK="$ac_prog"
                   3122:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3123:     break 2
                   3124:   fi
                   3125: done
1.15      bertrand 3126:   done
1.14      bertrand 3127: IFS=$as_save_IFS
                   3128: 
                   3129: fi
1.1       bertrand 3130: fi
1.15      bertrand 3131: AWK=$ac_cv_prog_AWK
                   3132: if test -n "$AWK"; then
                   3133:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3134: $as_echo "$AWK" >&6; }
1.14      bertrand 3135: else
1.15      bertrand 3136:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3137: $as_echo "no" >&6; }
1.1       bertrand 3138: fi
                   3139: 
                   3140: 
1.15      bertrand 3141:   test -n "$AWK" && break
                   3142: done
1.1       bertrand 3143: 
1.15      bertrand 3144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3145: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3146: set x ${MAKE-make}
                   3147: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3148: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3149:   $as_echo_n "(cached) " >&6
1.14      bertrand 3150: else
1.15      bertrand 3151:   cat >conftest.make <<\_ACEOF
                   3152: SHELL = /bin/sh
                   3153: all:
                   3154:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3155: _ACEOF
1.36      bertrand 3156: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3157: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3158:   *@@@%%%=?*=@@@%%%*)
                   3159:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3160:   *)
                   3161:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3162: esac
                   3163: rm -f conftest.make
                   3164: fi
                   3165: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3167: $as_echo "yes" >&6; }
                   3168:   SET_MAKE=
1.1       bertrand 3169: else
1.15      bertrand 3170:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3171: $as_echo "no" >&6; }
                   3172:   SET_MAKE="MAKE=${MAKE-make}"
                   3173: fi
1.1       bertrand 3174: 
1.15      bertrand 3175: rm -rf .tst 2>/dev/null
                   3176: mkdir .tst 2>/dev/null
                   3177: if test -d .tst; then
                   3178:   am__leading_dot=.
                   3179: else
                   3180:   am__leading_dot=_
1.14      bertrand 3181: fi
1.15      bertrand 3182: rmdir .tst 2>/dev/null
                   3183: 
                   3184: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3185:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3186:   # is not polluted with repeated "-I."
                   3187:   am__isrc=' -I$(srcdir)'
                   3188:   # test to see if srcdir already configured
                   3189:   if test -f $srcdir/config.status; then
1.36      bertrand 3190:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3191:   fi
1.1       bertrand 3192: fi
1.15      bertrand 3193: 
                   3194: # test whether we have cygpath
                   3195: if test -z "$CYGPATH_W"; then
                   3196:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3197:     CYGPATH_W='cygpath -w'
                   3198:   else
                   3199:     CYGPATH_W=echo
                   3200:   fi
1.1       bertrand 3201: fi
                   3202: 
                   3203: 
1.15      bertrand 3204: # Define the identity of the package.
                   3205:  PACKAGE='rpl'
1.73      bertrand 3206:  VERSION='4.1.3'
1.15      bertrand 3207: 
                   3208: 
                   3209: cat >>confdefs.h <<_ACEOF
                   3210: #define PACKAGE "$PACKAGE"
                   3211: _ACEOF
                   3212: 
                   3213: 
                   3214: cat >>confdefs.h <<_ACEOF
                   3215: #define VERSION "$VERSION"
                   3216: _ACEOF
                   3217: 
                   3218: # Some tools Automake needs.
                   3219: 
                   3220: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3221: 
                   3222: 
                   3223: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3224: 
                   3225: 
                   3226: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3227: 
                   3228: 
                   3229: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3230: 
                   3231: 
                   3232: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3233: 
                   3234: # We need awk for the "check" target.  The system "awk" is bad on
                   3235: # some platforms.
                   3236: # Always define AMTAR for backward compatibility.
                   3237: 
                   3238: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3239: 
                   3240: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3241: 
                   3242: 
                   3243: 
                   3244: 
1.1       bertrand 3245: 
                   3246: 
1.15      bertrand 3247: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3248: 
                   3249: 
1.54      bertrand 3250: NCURSES=ncurses-5.9
1.50      bertrand 3251: READLINE=readline-6.2
1.30      bertrand 3252: UNITS=units-1.88
1.57      bertrand 3253: GSL=gsl-1.15
1.72      bertrand 3254: GPP=gpp-3.0
1.52      bertrand 3255: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3256: FILE=file-5.03
                   3257: ICONV=libiconv-1.13.1
1.69      bertrand 3258: SQLITE=sqlite-3.7.7.1
1.74      bertrand 3259: OPENSSL=openssl-1.0.0e
1.76      bertrand 3260: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3261: 
1.75      bertrand 3262: GMP=gmp-5.0.2
1.55      bertrand 3263: MPFR=mpfr-3.0.1
1.56      bertrand 3264: NTL=ntl-5.5.2
                   3265: COCOA=CoCoALib-0.9943
1.76      bertrand 3266: PARI=pari-2.5.0
1.67      bertrand 3267: GIAC=giac-0.9.3
1.55      bertrand 3268: 
1.15      bertrand 3269: ac_ext=c
                   3270: ac_cpp='$CPP $CPPFLAGS'
                   3271: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3272: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3273: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3274: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3275:   for ac_prog in gcc
1.15      bertrand 3276:   do
                   3277:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3278: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3280: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3281: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3282:   $as_echo_n "(cached) " >&6
1.1       bertrand 3283: else
1.15      bertrand 3284:   if test -n "$CC"; then
                   3285:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3286: else
                   3287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3288: for as_dir in $PATH
                   3289: do
                   3290:   IFS=$as_save_IFS
                   3291:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3292:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3293:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3294:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3295:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3296:     break 2
                   3297:   fi
                   3298: done
1.15      bertrand 3299:   done
1.1       bertrand 3300: IFS=$as_save_IFS
                   3301: 
                   3302: fi
                   3303: fi
1.15      bertrand 3304: CC=$ac_cv_prog_CC
                   3305: if test -n "$CC"; then
                   3306:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3307: $as_echo "$CC" >&6; }
1.1       bertrand 3308: else
1.15      bertrand 3309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3310: $as_echo "no" >&6; }
1.1       bertrand 3311: fi
                   3312: 
                   3313: 
1.15      bertrand 3314:     test -n "$CC" && break
                   3315:   done
                   3316: fi
                   3317: if test -z "$CC"; then
                   3318:   ac_ct_CC=$CC
1.23      bertrand 3319:   for ac_prog in gcc
1.15      bertrand 3320: do
                   3321:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3322: set dummy $ac_prog; ac_word=$2
                   3323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3324: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3325: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3326:   $as_echo_n "(cached) " >&6
1.1       bertrand 3327: else
1.15      bertrand 3328:   if test -n "$ac_ct_CC"; then
                   3329:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3330: else
                   3331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3332: for as_dir in $PATH
                   3333: do
                   3334:   IFS=$as_save_IFS
                   3335:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3336:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3337:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3338:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3339:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3340:     break 2
                   3341:   fi
                   3342: done
1.15      bertrand 3343:   done
1.1       bertrand 3344: IFS=$as_save_IFS
                   3345: 
                   3346: fi
                   3347: fi
1.15      bertrand 3348: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3349: if test -n "$ac_ct_CC"; then
                   3350:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3351: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3352: else
1.15      bertrand 3353:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3354: $as_echo "no" >&6; }
1.1       bertrand 3355: fi
                   3356: 
                   3357: 
1.15      bertrand 3358:   test -n "$ac_ct_CC" && break
                   3359: done
1.1       bertrand 3360: 
1.15      bertrand 3361:   if test "x$ac_ct_CC" = x; then
                   3362:     CC=""
                   3363:   else
                   3364:     case $cross_compiling:$ac_tool_warned in
                   3365: yes:)
                   3366: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3367: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3368: ac_tool_warned=yes ;;
                   3369: esac
                   3370:     CC=$ac_ct_CC
1.1       bertrand 3371:   fi
                   3372: fi
                   3373: 
                   3374: 
1.15      bertrand 3375: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3376: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3377: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3378: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3379: 
1.15      bertrand 3380: # Provide some information about the compiler.
                   3381: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3382: set X $ac_compile
                   3383: ac_compiler=$2
                   3384: for ac_option in --version -v -V -qversion; do
                   3385:   { { ac_try="$ac_compiler $ac_option >&5"
                   3386: case "(($ac_try" in
                   3387:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3388:   *) ac_try_echo=$ac_try;;
                   3389: esac
                   3390: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3391: $as_echo "$ac_try_echo"; } >&5
                   3392:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3393:   ac_status=$?
                   3394:   if test -s conftest.err; then
                   3395:     sed '10a\
                   3396: ... rest of stderr output deleted ...
                   3397:          10q' conftest.err >conftest.er1
                   3398:     cat conftest.er1 >&5
1.1       bertrand 3399:   fi
1.15      bertrand 3400:   rm -f conftest.er1 conftest.err
                   3401:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3402:   test $ac_status = 0; }
1.1       bertrand 3403: done
                   3404: 
1.15      bertrand 3405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3406: /* end confdefs.h.  */
                   3407: 
                   3408: int
                   3409: main ()
                   3410: {
1.14      bertrand 3411: 
1.15      bertrand 3412:   ;
                   3413:   return 0;
                   3414: }
                   3415: _ACEOF
                   3416: ac_clean_files_save=$ac_clean_files
                   3417: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3418: # Try to create an executable without -o first, disregard a.out.
                   3419: # It will help us diagnose broken compilers, and finding out an intuition
                   3420: # of exeext.
                   3421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3422: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3423: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3424: 
1.15      bertrand 3425: # The possible output files:
                   3426: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3427: 
1.15      bertrand 3428: ac_rmfiles=
                   3429: for ac_file in $ac_files
1.1       bertrand 3430: do
1.15      bertrand 3431:   case $ac_file in
                   3432:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3433:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3434:   esac
1.1       bertrand 3435: done
1.15      bertrand 3436: rm -f $ac_rmfiles
                   3437: 
                   3438: if { { ac_try="$ac_link_default"
                   3439: case "(($ac_try" in
                   3440:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3441:   *) ac_try_echo=$ac_try;;
                   3442: esac
                   3443: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3444: $as_echo "$ac_try_echo"; } >&5
                   3445:   (eval "$ac_link_default") 2>&5
                   3446:   ac_status=$?
                   3447:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3448:   test $ac_status = 0; }; then :
                   3449:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3450: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3451: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3452: # so that the user can short-circuit this test for compilers unknown to
                   3453: # Autoconf.
                   3454: for ac_file in $ac_files ''
                   3455: do
                   3456:   test -f "$ac_file" || continue
                   3457:   case $ac_file in
                   3458:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3459:    ;;
                   3460:     [ab].out )
                   3461:    # We found the default executable, but exeext='' is most
                   3462:    # certainly right.
                   3463:    break;;
                   3464:     *.* )
                   3465:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3466:    then :; else
                   3467:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3468:    fi
                   3469:    # We set ac_cv_exeext here because the later test for it is not
                   3470:    # safe: cross compilers may not add the suffix if given an `-o'
                   3471:    # argument, so we may need to know it at that point already.
                   3472:    # Even if this section looks crufty: it has the advantage of
                   3473:    # actually working.
                   3474:    break;;
                   3475:     * )
                   3476:    break;;
                   3477:   esac
1.14      bertrand 3478: done
1.15      bertrand 3479: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3480: 
1.14      bertrand 3481: else
1.15      bertrand 3482:   ac_file=''
1.1       bertrand 3483: fi
1.15      bertrand 3484: if test -z "$ac_file"; then :
                   3485:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3486: $as_echo "no" >&6; }
                   3487: $as_echo "$as_me: failed program was:" >&5
                   3488: sed 's/^/| /' conftest.$ac_ext >&5
                   3489: 
                   3490: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3491: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3492: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3493: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3494: else
                   3495:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3496: $as_echo "yes" >&6; }
                   3497: fi
                   3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3499: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3501: $as_echo "$ac_file" >&6; }
                   3502: ac_exeext=$ac_cv_exeext
1.1       bertrand 3503: 
1.15      bertrand 3504: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3505: ac_clean_files=$ac_clean_files_save
                   3506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3507: $as_echo_n "checking for suffix of executables... " >&6; }
                   3508: if { { ac_try="$ac_link"
                   3509: case "(($ac_try" in
                   3510:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3511:   *) ac_try_echo=$ac_try;;
                   3512: esac
                   3513: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3514: $as_echo "$ac_try_echo"; } >&5
                   3515:   (eval "$ac_link") 2>&5
                   3516:   ac_status=$?
                   3517:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3518:   test $ac_status = 0; }; then :
                   3519:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3520: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3521: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3522: # `rm'.
                   3523: for ac_file in conftest.exe conftest conftest.*; do
                   3524:   test -f "$ac_file" || continue
                   3525:   case $ac_file in
                   3526:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3527:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3528:      break;;
                   3529:     * ) break;;
                   3530:   esac
                   3531: done
1.14      bertrand 3532: else
1.15      bertrand 3533:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3534: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3535: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3536: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3537: fi
                   3538: rm -f conftest conftest$ac_cv_exeext
                   3539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3540: $as_echo "$ac_cv_exeext" >&6; }
                   3541: 
                   3542: rm -f conftest.$ac_ext
                   3543: EXEEXT=$ac_cv_exeext
                   3544: ac_exeext=$EXEEXT
                   3545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3546: /* end confdefs.h.  */
1.15      bertrand 3547: #include <stdio.h>
1.14      bertrand 3548: int
                   3549: main ()
                   3550: {
1.15      bertrand 3551: FILE *f = fopen ("conftest.out", "w");
                   3552:  return ferror (f) || fclose (f) != 0;
                   3553: 
1.14      bertrand 3554:   ;
                   3555:   return 0;
                   3556: }
                   3557: _ACEOF
1.15      bertrand 3558: ac_clean_files="$ac_clean_files conftest.out"
                   3559: # Check that the compiler produces executables we can run.  If not, either
                   3560: # the compiler is broken, or we cross compile.
                   3561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3562: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3563: if test "$cross_compiling" != yes; then
                   3564:   { { ac_try="$ac_link"
1.1       bertrand 3565: case "(($ac_try" in
                   3566:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3567:   *) ac_try_echo=$ac_try;;
                   3568: esac
1.15      bertrand 3569: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3570: $as_echo "$ac_try_echo"; } >&5
                   3571:   (eval "$ac_link") 2>&5
                   3572:   ac_status=$?
                   3573:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3574:   test $ac_status = 0; }
                   3575:   if { ac_try='./conftest$ac_cv_exeext'
                   3576:   { { case "(($ac_try" in
                   3577:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3578:   *) ac_try_echo=$ac_try;;
                   3579: esac
                   3580: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3581: $as_echo "$ac_try_echo"; } >&5
                   3582:   (eval "$ac_try") 2>&5
1.1       bertrand 3583:   ac_status=$?
1.15      bertrand 3584:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3585:   test $ac_status = 0; }; }; then
                   3586:     cross_compiling=no
                   3587:   else
                   3588:     if test "$cross_compiling" = maybe; then
                   3589:    cross_compiling=yes
                   3590:     else
                   3591:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3592: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3593: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3594: If you meant to cross compile, use \`--host'.
1.57      bertrand 3595: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3596:     fi
                   3597:   fi
1.14      bertrand 3598: fi
1.15      bertrand 3599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3600: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3601: 
1.15      bertrand 3602: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3603: ac_clean_files=$ac_clean_files_save
                   3604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3605: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3606: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3607:   $as_echo_n "(cached) " >&6
1.14      bertrand 3608: else
1.15      bertrand 3609:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3610: /* end confdefs.h.  */
                   3611: 
                   3612: int
                   3613: main ()
                   3614: {
1.15      bertrand 3615: 
1.1       bertrand 3616:   ;
                   3617:   return 0;
                   3618: }
                   3619: _ACEOF
1.15      bertrand 3620: rm -f conftest.o conftest.obj
                   3621: if { { ac_try="$ac_compile"
1.1       bertrand 3622: case "(($ac_try" in
                   3623:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3624:   *) ac_try_echo=$ac_try;;
                   3625: esac
1.15      bertrand 3626: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3627: $as_echo "$ac_try_echo"; } >&5
                   3628:   (eval "$ac_compile") 2>&5
1.1       bertrand 3629:   ac_status=$?
1.15      bertrand 3630:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3631:   test $ac_status = 0; }; then :
                   3632:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3633:   test -f "$ac_file" || continue;
                   3634:   case $ac_file in
                   3635:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3636:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3637:        break;;
                   3638:   esac
                   3639: done
1.14      bertrand 3640: else
1.15      bertrand 3641:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3642: sed 's/^/| /' conftest.$ac_ext >&5
                   3643: 
1.15      bertrand 3644: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3645: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3646: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3647: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3648: fi
1.15      bertrand 3649: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3650: fi
                   3651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3652: $as_echo "$ac_cv_objext" >&6; }
                   3653: OBJEXT=$ac_cv_objext
                   3654: ac_objext=$OBJEXT
                   3655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3656: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3657: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3658:   $as_echo_n "(cached) " >&6
                   3659: else
                   3660:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3661: /* end confdefs.h.  */
                   3662: 
                   3663: int
                   3664: main ()
                   3665: {
                   3666: #ifndef __GNUC__
                   3667:        choke me
                   3668: #endif
1.14      bertrand 3669: 
1.15      bertrand 3670:   ;
                   3671:   return 0;
                   3672: }
                   3673: _ACEOF
                   3674: if ac_fn_c_try_compile "$LINENO"; then :
                   3675:   ac_compiler_gnu=yes
1.14      bertrand 3676: else
1.15      bertrand 3677:   ac_compiler_gnu=no
1.14      bertrand 3678: fi
1.15      bertrand 3679: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3680: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3681: 
1.15      bertrand 3682: fi
                   3683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3684: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3685: if test $ac_compiler_gnu = yes; then
                   3686:   GCC=yes
1.14      bertrand 3687: else
1.15      bertrand 3688:   GCC=
1.14      bertrand 3689: fi
1.15      bertrand 3690: ac_test_CFLAGS=${CFLAGS+set}
                   3691: ac_save_CFLAGS=$CFLAGS
                   3692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3693: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3694: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3695:   $as_echo_n "(cached) " >&6
                   3696: else
                   3697:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3698:    ac_c_werror_flag=yes
                   3699:    ac_cv_prog_cc_g=no
                   3700:    CFLAGS="-g"
                   3701:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3702: /* end confdefs.h.  */
1.14      bertrand 3703: 
1.15      bertrand 3704: int
                   3705: main ()
                   3706: {
1.14      bertrand 3707: 
1.15      bertrand 3708:   ;
                   3709:   return 0;
                   3710: }
                   3711: _ACEOF
                   3712: if ac_fn_c_try_compile "$LINENO"; then :
                   3713:   ac_cv_prog_cc_g=yes
                   3714: else
                   3715:   CFLAGS=""
                   3716:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3717: /* end confdefs.h.  */
1.14      bertrand 3718: 
1.15      bertrand 3719: int
                   3720: main ()
                   3721: {
1.14      bertrand 3722: 
1.15      bertrand 3723:   ;
                   3724:   return 0;
                   3725: }
                   3726: _ACEOF
                   3727: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3728: 
1.15      bertrand 3729: else
                   3730:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3731:     CFLAGS="-g"
                   3732:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3733: /* end confdefs.h.  */
1.14      bertrand 3734: 
1.15      bertrand 3735: int
                   3736: main ()
                   3737: {
1.14      bertrand 3738: 
1.15      bertrand 3739:   ;
                   3740:   return 0;
                   3741: }
                   3742: _ACEOF
                   3743: if ac_fn_c_try_compile "$LINENO"; then :
                   3744:   ac_cv_prog_cc_g=yes
                   3745: fi
                   3746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3747: fi
                   3748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3749: fi
                   3750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3751:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3752: fi
                   3753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3754: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3755: if test "$ac_test_CFLAGS" = set; then
                   3756:   CFLAGS=$ac_save_CFLAGS
                   3757: elif test $ac_cv_prog_cc_g = yes; then
                   3758:   if test "$GCC" = yes; then
                   3759:     CFLAGS="-g -O2"
                   3760:   else
                   3761:     CFLAGS="-g"
                   3762:   fi
                   3763: else
                   3764:   if test "$GCC" = yes; then
                   3765:     CFLAGS="-O2"
                   3766:   else
                   3767:     CFLAGS=
                   3768:   fi
                   3769: fi
                   3770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3771: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3772: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3773:   $as_echo_n "(cached) " >&6
1.1       bertrand 3774: else
1.15      bertrand 3775:   ac_cv_prog_cc_c89=no
                   3776: ac_save_CC=$CC
                   3777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3778: /* end confdefs.h.  */
1.15      bertrand 3779: #include <stdarg.h>
                   3780: #include <stdio.h>
                   3781: #include <sys/types.h>
                   3782: #include <sys/stat.h>
                   3783: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3784: struct buf { int x; };
                   3785: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3786: static char *e (p, i)
                   3787:      char **p;
                   3788:      int i;
                   3789: {
                   3790:   return p[i];
                   3791: }
                   3792: static char *f (char * (*g) (char **, int), char **p, ...)
                   3793: {
                   3794:   char *s;
                   3795:   va_list v;
                   3796:   va_start (v,p);
                   3797:   s = g (p, va_arg (v,int));
                   3798:   va_end (v);
                   3799:   return s;
                   3800: }
                   3801: 
                   3802: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3803:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3804:    These don't provoke an error unfortunately, instead are silently treated
                   3805:    as 'x'.  The following induces an error, until -std is added to get
                   3806:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3807:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3808:    that's true only with -std.  */
                   3809: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3810: 
1.15      bertrand 3811: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3812:    inside strings and character constants.  */
                   3813: #define FOO(x) 'x'
                   3814: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3815: 
1.15      bertrand 3816: int test (int i, double x);
                   3817: struct s1 {int (*f) (int a);};
                   3818: struct s2 {int (*f) (double a);};
                   3819: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3820: int argc;
                   3821: char **argv;
1.14      bertrand 3822: int
                   3823: main ()
                   3824: {
1.15      bertrand 3825: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3826:   ;
                   3827:   return 0;
                   3828: }
                   3829: _ACEOF
1.15      bertrand 3830: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3831:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3832: do
                   3833:   CC="$ac_save_CC $ac_arg"
                   3834:   if ac_fn_c_try_compile "$LINENO"; then :
                   3835:   ac_cv_prog_cc_c89=$ac_arg
                   3836: fi
                   3837: rm -f core conftest.err conftest.$ac_objext
                   3838:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3839: done
                   3840: rm -f conftest.$ac_ext
                   3841: CC=$ac_save_CC
                   3842: 
                   3843: fi
                   3844: # AC_CACHE_VAL
                   3845: case "x$ac_cv_prog_cc_c89" in
                   3846:   x)
                   3847:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3848: $as_echo "none needed" >&6; } ;;
                   3849:   xno)
                   3850:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3851: $as_echo "unsupported" >&6; } ;;
                   3852:   *)
                   3853:     CC="$CC $ac_cv_prog_cc_c89"
                   3854:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3855: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3856: esac
1.15      bertrand 3857: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3858: 
                   3859: fi
                   3860: 
1.15      bertrand 3861: ac_ext=c
                   3862: ac_cpp='$CPP $CPPFLAGS'
                   3863: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3864: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3865: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3866: DEPDIR="${am__leading_dot}deps"
                   3867: 
                   3868: ac_config_commands="$ac_config_commands depfiles"
                   3869: 
                   3870: 
                   3871: am_make=${MAKE-make}
                   3872: cat > confinc << 'END'
                   3873: am__doit:
                   3874:    @echo this is the am__doit target
                   3875: .PHONY: am__doit
                   3876: END
                   3877: # If we don't find an include directive, just comment out the code.
                   3878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3879: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3880: am__include="#"
                   3881: am__quote=
                   3882: _am_result=none
                   3883: # First try GNU make style include.
                   3884: echo "include confinc" > confmf
                   3885: # Ignore all kinds of additional output from `make'.
                   3886: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3887: *the\ am__doit\ target*)
                   3888:   am__include=include
                   3889:   am__quote=
                   3890:   _am_result=GNU
                   3891:   ;;
                   3892: esac
                   3893: # Now try BSD make style include.
                   3894: if test "$am__include" = "#"; then
                   3895:    echo '.include "confinc"' > confmf
                   3896:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3897:    *the\ am__doit\ target*)
                   3898:      am__include=.include
                   3899:      am__quote="\""
                   3900:      _am_result=BSD
                   3901:      ;;
                   3902:    esac
1.14      bertrand 3903: fi
                   3904: 
                   3905: 
1.15      bertrand 3906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3907: $as_echo "$_am_result" >&6; }
                   3908: rm -f confinc confmf
                   3909: 
                   3910: # Check whether --enable-dependency-tracking was given.
                   3911: if test "${enable_dependency_tracking+set}" = set; then :
                   3912:   enableval=$enable_dependency_tracking;
                   3913: fi
                   3914: 
                   3915: if test "x$enable_dependency_tracking" != xno; then
                   3916:   am_depcomp="$ac_aux_dir/depcomp"
                   3917:   AMDEPBACKSLASH='\'
                   3918: fi
                   3919:  if test "x$enable_dependency_tracking" != xno; then
                   3920:   AMDEP_TRUE=
                   3921:   AMDEP_FALSE='#'
1.1       bertrand 3922: else
1.15      bertrand 3923:   AMDEP_TRUE='#'
                   3924:   AMDEP_FALSE=
1.14      bertrand 3925: fi
1.1       bertrand 3926: 
1.14      bertrand 3927: 
                   3928: 
1.15      bertrand 3929: depcc="$CC"   am_compiler_list=
1.14      bertrand 3930: 
1.15      bertrand 3931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3932: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3933: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3934:   $as_echo_n "(cached) " >&6
1.14      bertrand 3935: else
1.15      bertrand 3936:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3937:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3938:   # making bogus files that we don't know about and never remove.  For
                   3939:   # instance it was reported that on HP-UX the gcc test will end up
                   3940:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3941:   # in D'.
                   3942:   mkdir conftest.dir
                   3943:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3944:   # using a relative directory.
                   3945:   cp "$am_depcomp" conftest.dir
                   3946:   cd conftest.dir
                   3947:   # We will build objects and dependencies in a subdirectory because
                   3948:   # it helps to detect inapplicable dependency modes.  For instance
                   3949:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3950:   # side effect of compilation, but ICC will put the dependencies in
                   3951:   # the current directory while Tru64 will put them in the object
                   3952:   # directory.
                   3953:   mkdir sub
1.14      bertrand 3954: 
1.15      bertrand 3955:   am_cv_CC_dependencies_compiler_type=none
                   3956:   if test "$am_compiler_list" = ""; then
                   3957:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3958:   fi
                   3959:   am__universal=false
                   3960:   case " $depcc " in #(
                   3961:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3962:      esac
1.14      bertrand 3963: 
1.15      bertrand 3964:   for depmode in $am_compiler_list; do
                   3965:     # Setup a source with many dependencies, because some compilers
                   3966:     # like to wrap large dependency lists on column 80 (with \), and
                   3967:     # we should not choose a depcomp mode which is confused by this.
                   3968:     #
                   3969:     # We need to recreate these files for each test, as the compiler may
                   3970:     # overwrite some of them when testing with obscure command lines.
                   3971:     # This happens at least with the AIX C compiler.
                   3972:     : > sub/conftest.c
                   3973:     for i in 1 2 3 4 5 6; do
                   3974:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3975:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3976:       # Solaris 8's {/usr,}/bin/sh.
                   3977:       touch sub/conftst$i.h
                   3978:     done
                   3979:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3980: 
1.15      bertrand 3981:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3982:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3983:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3984:     # versions had trouble with output in subdirs
                   3985:     am__obj=sub/conftest.${OBJEXT-o}
                   3986:     am__minus_obj="-o $am__obj"
                   3987:     case $depmode in
                   3988:     gcc)
                   3989:       # This depmode causes a compiler race in universal mode.
                   3990:       test "$am__universal" = false || continue
                   3991:       ;;
                   3992:     nosideeffect)
                   3993:       # after this tag, mechanisms are not by side-effect, so they'll
                   3994:       # only be used when explicitly requested
                   3995:       if test "x$enable_dependency_tracking" = xyes; then
                   3996:    continue
                   3997:       else
                   3998:    break
                   3999:       fi
                   4000:       ;;
                   4001:     msvisualcpp | msvcmsys)
                   4002:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4003:       # not run yet.  These depmodes are late enough in the game, and
                   4004:       # so weak that their functioning should not be impacted.
                   4005:       am__obj=conftest.${OBJEXT-o}
                   4006:       am__minus_obj=
                   4007:       ;;
                   4008:     none) break ;;
                   4009:     esac
                   4010:     if depmode=$depmode \
                   4011:        source=sub/conftest.c object=$am__obj \
                   4012:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4013:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4014:          >/dev/null 2>conftest.err &&
                   4015:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4016:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4017:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4018:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4019:       # icc doesn't choke on unknown options, it will just issue warnings
                   4020:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4021:       # that says an option was ignored or not supported.
                   4022:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4023:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4024:       # The diagnosis changed in icc 8.0:
                   4025:       #   icc: Command line remark: option '-MP' not supported
                   4026:       if (grep 'ignoring option' conftest.err ||
                   4027:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4028:         am_cv_CC_dependencies_compiler_type=$depmode
                   4029:         break
                   4030:       fi
                   4031:     fi
                   4032:   done
1.14      bertrand 4033: 
1.15      bertrand 4034:   cd ..
                   4035:   rm -rf conftest.dir
1.14      bertrand 4036: else
1.15      bertrand 4037:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4038: fi
                   4039: 
1.15      bertrand 4040: fi
                   4041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4042: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4043: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4044: 
1.15      bertrand 4045:  if
                   4046:   test "x$enable_dependency_tracking" != xno \
                   4047:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4048:   am__fastdepCC_TRUE=
                   4049:   am__fastdepCC_FALSE='#'
1.1       bertrand 4050: else
1.15      bertrand 4051:   am__fastdepCC_TRUE='#'
                   4052:   am__fastdepCC_FALSE=
                   4053: fi
                   4054: 
1.1       bertrand 4055: 
                   4056: 
1.30      bertrand 4057: EXT_SQL=
                   4058: 
1.15      bertrand 4059: if test x"$CC" != x""; then
                   4060:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4061:            awk -F. '{ printf("%s", $1);}'`
                   4062:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4063:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4064:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4065:        OPTIMISATION_C=-O3
                   4066:    else
1.23      bertrand 4067:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4068:                then
1.15      bertrand 4069:            OPTIMISATION_C=-O3
                   4070:        else
1.23      bertrand 4071:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4072:                OPTIMISATION_C=-O2
                   4073:            else
1.36      bertrand 4074:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4075:            fi
1.15      bertrand 4076:        fi
                   4077:    fi
1.14      bertrand 4078: fi
                   4079: 
1.15      bertrand 4080: if test "x$CC" != xcc; then
                   4081:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4082: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4083: else
1.15      bertrand 4084:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4085: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4086: fi
1.15      bertrand 4087: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4088:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4089: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4090:   $as_echo_n "(cached) " >&6
1.1       bertrand 4091: else
1.15      bertrand 4092:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4093: /* end confdefs.h.  */
                   4094: 
                   4095: int
                   4096: main ()
                   4097: {
1.15      bertrand 4098: 
1.1       bertrand 4099:   ;
                   4100:   return 0;
                   4101: }
                   4102: _ACEOF
1.15      bertrand 4103: # Make sure it works both with $CC and with simple cc.
                   4104: # We do the test twice because some compilers refuse to overwrite an
                   4105: # existing .o file with -o, though they will create one.
                   4106: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4107: rm -f conftest2.*
                   4108: if { { case "(($ac_try" in
                   4109:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4110:   *) ac_try_echo=$ac_try;;
                   4111: esac
                   4112: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4113: $as_echo "$ac_try_echo"; } >&5
                   4114:   (eval "$ac_try") 2>&5
                   4115:   ac_status=$?
                   4116:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4117:   test $ac_status = 0; } &&
                   4118:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4119:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4120:   *) ac_try_echo=$ac_try;;
                   4121: esac
                   4122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4123: $as_echo "$ac_try_echo"; } >&5
                   4124:   (eval "$ac_try") 2>&5
                   4125:   ac_status=$?
                   4126:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4127:   test $ac_status = 0; };
                   4128: then
                   4129:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4130:   if test "x$CC" != xcc; then
                   4131:     # Test first that cc exists at all.
                   4132:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4133:   { { case "(($ac_try" in
                   4134:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4135:   *) ac_try_echo=$ac_try;;
                   4136: esac
                   4137: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4138: $as_echo "$ac_try_echo"; } >&5
                   4139:   (eval "$ac_try") 2>&5
                   4140:   ac_status=$?
                   4141:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4142:   test $ac_status = 0; }; }; then
                   4143:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4144:       rm -f conftest2.*
                   4145:       if { { case "(($ac_try" in
                   4146:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4147:   *) ac_try_echo=$ac_try;;
                   4148: esac
                   4149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4150: $as_echo "$ac_try_echo"; } >&5
                   4151:   (eval "$ac_try") 2>&5
                   4152:   ac_status=$?
                   4153:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4154:   test $ac_status = 0; } &&
                   4155:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4156:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4157:   *) ac_try_echo=$ac_try;;
                   4158: esac
1.15      bertrand 4159: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4160: $as_echo "$ac_try_echo"; } >&5
                   4161:   (eval "$ac_try") 2>&5
1.14      bertrand 4162:   ac_status=$?
1.15      bertrand 4163:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4164:   test $ac_status = 0; };
                   4165:       then
                   4166:    # cc works too.
                   4167:    :
                   4168:       else
                   4169:    # cc exists but doesn't like -o.
                   4170:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4171:       fi
                   4172:     fi
                   4173:   fi
1.1       bertrand 4174: else
1.15      bertrand 4175:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4176: fi
                   4177: rm -f core conftest*
1.14      bertrand 4178: 
1.1       bertrand 4179: fi
1.15      bertrand 4180: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4181:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4182: $as_echo "yes" >&6; }
                   4183: else
                   4184:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4185: $as_echo "no" >&6; }
                   4186: 
                   4187: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4188: 
                   4189: fi
1.15      bertrand 4190: 
                   4191: # FIXME: we rely on the cache variable name because
                   4192: # there is no other way.
                   4193: set dummy $CC
                   4194: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4195: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4196: if test "$am_t" != yes; then
                   4197:    # Losing compiler, so override with the script.
                   4198:    # FIXME: It is wrong to rewrite CC.
                   4199:    # But if we don't then we get into trouble of one sort or another.
                   4200:    # A longer-term fix would be to have automake use am__CC in this case,
                   4201:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4202:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4203: fi
1.14      bertrand 4204: 
                   4205: 
1.15      bertrand 4206: 
                   4207: if test "$GCC" != yes; then
1.36      bertrand 4208:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4209: fi
                   4210: 
                   4211: ac_ext=cpp
                   4212: ac_cpp='$CXXCPP $CPPFLAGS'
                   4213: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4214: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4215: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4216: if test -z "$CXX"; then
                   4217:   if test -n "$CCC"; then
                   4218:     CXX=$CCC
                   4219:   else
                   4220:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4221:   for ac_prog in g++
1.15      bertrand 4222:   do
                   4223:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4224: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4226: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4227: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4228:   $as_echo_n "(cached) " >&6
1.1       bertrand 4229: else
1.15      bertrand 4230:   if test -n "$CXX"; then
                   4231:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4232: else
1.15      bertrand 4233: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4234: for as_dir in $PATH
                   4235: do
                   4236:   IFS=$as_save_IFS
                   4237:   test -z "$as_dir" && as_dir=.
                   4238:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4239:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4240:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4241:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4242:     break 2
                   4243:   fi
                   4244: done
                   4245:   done
                   4246: IFS=$as_save_IFS
1.14      bertrand 4247: 
                   4248: fi
                   4249: fi
1.15      bertrand 4250: CXX=$ac_cv_prog_CXX
                   4251: if test -n "$CXX"; then
                   4252:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4253: $as_echo "$CXX" >&6; }
1.14      bertrand 4254: else
1.15      bertrand 4255:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4256: $as_echo "no" >&6; }
1.14      bertrand 4257: fi
                   4258: 
                   4259: 
1.15      bertrand 4260:     test -n "$CXX" && break
                   4261:   done
                   4262: fi
                   4263: if test -z "$CXX"; then
                   4264:   ac_ct_CXX=$CXX
1.23      bertrand 4265:   for ac_prog in g++
1.15      bertrand 4266: do
                   4267:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4268: set dummy $ac_prog; ac_word=$2
                   4269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4270: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4271: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4272:   $as_echo_n "(cached) " >&6
                   4273: else
                   4274:   if test -n "$ac_ct_CXX"; then
                   4275:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4276: else
                   4277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4278: for as_dir in $PATH
                   4279: do
                   4280:   IFS=$as_save_IFS
                   4281:   test -z "$as_dir" && as_dir=.
                   4282:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4283:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4284:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4285:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4286:     break 2
                   4287:   fi
                   4288: done
                   4289:   done
                   4290: IFS=$as_save_IFS
1.14      bertrand 4291: 
1.15      bertrand 4292: fi
                   4293: fi
                   4294: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4295: if test -n "$ac_ct_CXX"; then
                   4296:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4297: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4298: else
1.15      bertrand 4299:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4300: $as_echo "no" >&6; }
1.14      bertrand 4301: fi
                   4302: 
                   4303: 
1.15      bertrand 4304:   test -n "$ac_ct_CXX" && break
                   4305: done
1.14      bertrand 4306: 
1.15      bertrand 4307:   if test "x$ac_ct_CXX" = x; then
                   4308:     CXX="g++"
                   4309:   else
                   4310:     case $cross_compiling:$ac_tool_warned in
                   4311: yes:)
                   4312: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4313: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4314: ac_tool_warned=yes ;;
                   4315: esac
                   4316:     CXX=$ac_ct_CXX
                   4317:   fi
                   4318: fi
1.1       bertrand 4319: 
1.15      bertrand 4320:   fi
                   4321: fi
                   4322: # Provide some information about the compiler.
                   4323: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4324: set X $ac_compile
                   4325: ac_compiler=$2
                   4326: for ac_option in --version -v -V -qversion; do
                   4327:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4328: case "(($ac_try" in
                   4329:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4330:   *) ac_try_echo=$ac_try;;
                   4331: esac
1.15      bertrand 4332: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4333: $as_echo "$ac_try_echo"; } >&5
                   4334:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4335:   ac_status=$?
1.15      bertrand 4336:   if test -s conftest.err; then
                   4337:     sed '10a\
                   4338: ... rest of stderr output deleted ...
                   4339:          10q' conftest.err >conftest.er1
                   4340:     cat conftest.er1 >&5
                   4341:   fi
                   4342:   rm -f conftest.er1 conftest.err
                   4343:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4344:   test $ac_status = 0; }
                   4345: done
                   4346: 
                   4347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4348: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4349: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4350:   $as_echo_n "(cached) " >&6
1.14      bertrand 4351: else
1.15      bertrand 4352:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4353: /* end confdefs.h.  */
1.1       bertrand 4354: 
                   4355: int
                   4356: main ()
                   4357: {
1.15      bertrand 4358: #ifndef __GNUC__
                   4359:        choke me
                   4360: #endif
1.1       bertrand 4361: 
                   4362:   ;
                   4363:   return 0;
                   4364: }
                   4365: _ACEOF
1.15      bertrand 4366: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4367:   ac_compiler_gnu=yes
1.1       bertrand 4368: else
1.15      bertrand 4369:   ac_compiler_gnu=no
1.1       bertrand 4370: fi
1.14      bertrand 4371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4372: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4373: 
1.15      bertrand 4374: fi
                   4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4376: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4377: if test $ac_compiler_gnu = yes; then
                   4378:   GXX=yes
                   4379: else
                   4380:   GXX=
                   4381: fi
                   4382: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4383: ac_save_CXXFLAGS=$CXXFLAGS
                   4384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4385: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4386: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4387:   $as_echo_n "(cached) " >&6
                   4388: else
                   4389:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4390:    ac_cxx_werror_flag=yes
                   4391:    ac_cv_prog_cxx_g=no
                   4392:    CXXFLAGS="-g"
                   4393:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4394: /* end confdefs.h.  */
1.15      bertrand 4395: 
1.1       bertrand 4396: int
                   4397: main ()
                   4398: {
1.14      bertrand 4399: 
1.1       bertrand 4400:   ;
                   4401:   return 0;
                   4402: }
                   4403: _ACEOF
1.15      bertrand 4404: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4405:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4406: else
1.15      bertrand 4407:   CXXFLAGS=""
                   4408:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4409: /* end confdefs.h.  */
1.1       bertrand 4410: 
1.14      bertrand 4411: int
                   4412: main ()
                   4413: {
1.1       bertrand 4414: 
1.14      bertrand 4415:   ;
                   4416:   return 0;
                   4417: }
                   4418: _ACEOF
1.15      bertrand 4419: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4420: 
                   4421: else
1.15      bertrand 4422:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4423:     CXXFLAGS="-g"
                   4424:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4425: /* end confdefs.h.  */
1.1       bertrand 4426: 
1.14      bertrand 4427: int
                   4428: main ()
                   4429: {
1.1       bertrand 4430: 
1.14      bertrand 4431:   ;
                   4432:   return 0;
                   4433: }
                   4434: _ACEOF
1.15      bertrand 4435: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4436:   ac_cv_prog_cxx_g=yes
                   4437: fi
                   4438: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4439: fi
                   4440: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4441: fi
                   4442: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4443:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4444: fi
                   4445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4446: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4447: if test "$ac_test_CXXFLAGS" = set; then
                   4448:   CXXFLAGS=$ac_save_CXXFLAGS
                   4449: elif test $ac_cv_prog_cxx_g = yes; then
                   4450:   if test "$GXX" = yes; then
                   4451:     CXXFLAGS="-g -O2"
                   4452:   else
                   4453:     CXXFLAGS="-g"
                   4454:   fi
                   4455: else
                   4456:   if test "$GXX" = yes; then
                   4457:     CXXFLAGS="-O2"
                   4458:   else
                   4459:     CXXFLAGS=
                   4460:   fi
                   4461: fi
                   4462: ac_ext=c
                   4463: ac_cpp='$CPP $CPPFLAGS'
                   4464: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4465: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4466: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4467: 
                   4468: depcc="$CXX"  am_compiler_list=
                   4469: 
                   4470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4471: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4472: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4473:   $as_echo_n "(cached) " >&6
                   4474: else
                   4475:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4476:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4477:   # making bogus files that we don't know about and never remove.  For
                   4478:   # instance it was reported that on HP-UX the gcc test will end up
                   4479:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4480:   # in D'.
                   4481:   mkdir conftest.dir
                   4482:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4483:   # using a relative directory.
                   4484:   cp "$am_depcomp" conftest.dir
                   4485:   cd conftest.dir
                   4486:   # We will build objects and dependencies in a subdirectory because
                   4487:   # it helps to detect inapplicable dependency modes.  For instance
                   4488:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4489:   # side effect of compilation, but ICC will put the dependencies in
                   4490:   # the current directory while Tru64 will put them in the object
                   4491:   # directory.
                   4492:   mkdir sub
                   4493: 
                   4494:   am_cv_CXX_dependencies_compiler_type=none
                   4495:   if test "$am_compiler_list" = ""; then
                   4496:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4497:   fi
                   4498:   am__universal=false
                   4499:   case " $depcc " in #(
                   4500:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4501:      esac
                   4502: 
                   4503:   for depmode in $am_compiler_list; do
                   4504:     # Setup a source with many dependencies, because some compilers
                   4505:     # like to wrap large dependency lists on column 80 (with \), and
                   4506:     # we should not choose a depcomp mode which is confused by this.
                   4507:     #
                   4508:     # We need to recreate these files for each test, as the compiler may
                   4509:     # overwrite some of them when testing with obscure command lines.
                   4510:     # This happens at least with the AIX C compiler.
                   4511:     : > sub/conftest.c
                   4512:     for i in 1 2 3 4 5 6; do
                   4513:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4514:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4515:       # Solaris 8's {/usr,}/bin/sh.
                   4516:       touch sub/conftst$i.h
                   4517:     done
                   4518:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4519: 
                   4520:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4521:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4522:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4523:     # versions had trouble with output in subdirs
                   4524:     am__obj=sub/conftest.${OBJEXT-o}
                   4525:     am__minus_obj="-o $am__obj"
                   4526:     case $depmode in
                   4527:     gcc)
                   4528:       # This depmode causes a compiler race in universal mode.
                   4529:       test "$am__universal" = false || continue
                   4530:       ;;
                   4531:     nosideeffect)
                   4532:       # after this tag, mechanisms are not by side-effect, so they'll
                   4533:       # only be used when explicitly requested
                   4534:       if test "x$enable_dependency_tracking" = xyes; then
                   4535:    continue
                   4536:       else
                   4537:    break
                   4538:       fi
                   4539:       ;;
                   4540:     msvisualcpp | msvcmsys)
                   4541:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4542:       # not run yet.  These depmodes are late enough in the game, and
                   4543:       # so weak that their functioning should not be impacted.
                   4544:       am__obj=conftest.${OBJEXT-o}
                   4545:       am__minus_obj=
                   4546:       ;;
                   4547:     none) break ;;
                   4548:     esac
                   4549:     if depmode=$depmode \
                   4550:        source=sub/conftest.c object=$am__obj \
                   4551:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4552:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4553:          >/dev/null 2>conftest.err &&
                   4554:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4555:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4556:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4557:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4558:       # icc doesn't choke on unknown options, it will just issue warnings
                   4559:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4560:       # that says an option was ignored or not supported.
                   4561:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4562:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4563:       # The diagnosis changed in icc 8.0:
                   4564:       #   icc: Command line remark: option '-MP' not supported
                   4565:       if (grep 'ignoring option' conftest.err ||
                   4566:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4567:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4568:         break
                   4569:       fi
                   4570:     fi
                   4571:   done
                   4572: 
                   4573:   cd ..
                   4574:   rm -rf conftest.dir
                   4575: else
                   4576:   am_cv_CXX_dependencies_compiler_type=none
                   4577: fi
                   4578: 
                   4579: fi
                   4580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4581: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4582: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4583: 
                   4584:  if
                   4585:   test "x$enable_dependency_tracking" != xno \
                   4586:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4587:   am__fastdepCXX_TRUE=
                   4588:   am__fastdepCXX_FALSE='#'
                   4589: else
                   4590:   am__fastdepCXX_TRUE='#'
                   4591:   am__fastdepCXX_FALSE=
                   4592: fi
                   4593: 
                   4594: 
                   4595: 
1.69      bertrand 4596: if test "$CXX" != "g++"; then
1.36      bertrand 4597:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4598: fi
                   4599: 
1.69      bertrand 4600: if test x"$CXX" != x""; then
                   4601:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4602:            awk -F. '{ printf("%s", $1);}'`
                   4603:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4604:            awk -F. '{ printf("%s", $2);}'`
                   4605:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4606:        OPTIMISATION_GXX=-O3
                   4607:    else
                   4608:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4609:            OPTIMISATION_GXX=-O3
                   4610:        else
                   4611:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4612:                OPTIMISATION_GXX=-O2
                   4613:            else
                   4614:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4615:            fi
                   4616:        fi
                   4617:    fi
                   4618: fi
                   4619: 
1.15      bertrand 4620: ac_ext=f
                   4621: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4622: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4623: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4624: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4625:   for ac_prog in gfortran
1.15      bertrand 4626:   do
                   4627:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4628: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4630: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4631: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4632:   $as_echo_n "(cached) " >&6
                   4633: else
                   4634:   if test -n "$F77"; then
                   4635:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4636: else
                   4637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4638: for as_dir in $PATH
                   4639: do
                   4640:   IFS=$as_save_IFS
                   4641:   test -z "$as_dir" && as_dir=.
                   4642:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4643:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4644:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4645:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4646:     break 2
                   4647:   fi
                   4648: done
                   4649:   done
                   4650: IFS=$as_save_IFS
                   4651: 
                   4652: fi
                   4653: fi
                   4654: F77=$ac_cv_prog_F77
                   4655: if test -n "$F77"; then
                   4656:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4657: $as_echo "$F77" >&6; }
                   4658: else
                   4659:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4660: $as_echo "no" >&6; }
                   4661: fi
                   4662: 
                   4663: 
                   4664:     test -n "$F77" && break
                   4665:   done
                   4666: fi
                   4667: if test -z "$F77"; then
                   4668:   ac_ct_F77=$F77
1.23      bertrand 4669:   for ac_prog in gfortran
1.15      bertrand 4670: do
                   4671:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4672: set dummy $ac_prog; ac_word=$2
                   4673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4674: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4675: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4676:   $as_echo_n "(cached) " >&6
                   4677: else
                   4678:   if test -n "$ac_ct_F77"; then
                   4679:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4680: else
                   4681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4682: for as_dir in $PATH
                   4683: do
                   4684:   IFS=$as_save_IFS
                   4685:   test -z "$as_dir" && as_dir=.
                   4686:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4687:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4688:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4689:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4690:     break 2
                   4691:   fi
                   4692: done
                   4693:   done
                   4694: IFS=$as_save_IFS
                   4695: 
                   4696: fi
                   4697: fi
                   4698: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4699: if test -n "$ac_ct_F77"; then
                   4700:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4701: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4702: else
1.15      bertrand 4703:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4704: $as_echo "no" >&6; }
                   4705: fi
                   4706: 
                   4707: 
                   4708:   test -n "$ac_ct_F77" && break
                   4709: done
1.1       bertrand 4710: 
1.15      bertrand 4711:   if test "x$ac_ct_F77" = x; then
                   4712:     F77=""
                   4713:   else
                   4714:     case $cross_compiling:$ac_tool_warned in
                   4715: yes:)
                   4716: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4717: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4718: ac_tool_warned=yes ;;
                   4719: esac
                   4720:     F77=$ac_ct_F77
                   4721:   fi
1.14      bertrand 4722: fi
1.1       bertrand 4723: 
                   4724: 
1.15      bertrand 4725: # Provide some information about the compiler.
                   4726: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4727: set X $ac_compile
                   4728: ac_compiler=$2
                   4729: for ac_option in --version -v -V -qversion; do
                   4730:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4731: case "(($ac_try" in
                   4732:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4733:   *) ac_try_echo=$ac_try;;
                   4734: esac
1.15      bertrand 4735: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4736: $as_echo "$ac_try_echo"; } >&5
                   4737:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4738:   ac_status=$?
1.15      bertrand 4739:   if test -s conftest.err; then
                   4740:     sed '10a\
                   4741: ... rest of stderr output deleted ...
                   4742:          10q' conftest.err >conftest.er1
                   4743:     cat conftest.er1 >&5
                   4744:   fi
                   4745:   rm -f conftest.er1 conftest.err
                   4746:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4747:   test $ac_status = 0; }
                   4748: done
                   4749: rm -f a.out
                   4750: 
                   4751: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4752: # input file.  (Note that this only needs to work for GNU compilers.)
                   4753: ac_save_ext=$ac_ext
                   4754: ac_ext=F
                   4755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4756: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4757: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4758:   $as_echo_n "(cached) " >&6
1.1       bertrand 4759: else
1.15      bertrand 4760:   cat > conftest.$ac_ext <<_ACEOF
                   4761:       program main
                   4762: #ifndef __GNUC__
                   4763:        choke me
                   4764: #endif
1.14      bertrand 4765: 
1.15      bertrand 4766:       end
                   4767: _ACEOF
                   4768: if ac_fn_f77_try_compile "$LINENO"; then :
                   4769:   ac_compiler_gnu=yes
                   4770: else
                   4771:   ac_compiler_gnu=no
1.1       bertrand 4772: fi
1.15      bertrand 4773: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4774: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4775: 
                   4776: fi
1.15      bertrand 4777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4778: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4779: ac_ext=$ac_save_ext
                   4780: ac_test_FFLAGS=${FFLAGS+set}
                   4781: ac_save_FFLAGS=$FFLAGS
                   4782: FFLAGS=
                   4783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4784: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4785: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4786:   $as_echo_n "(cached) " >&6
                   4787: else
                   4788:   FFLAGS=-g
                   4789: cat > conftest.$ac_ext <<_ACEOF
                   4790:       program main
1.1       bertrand 4791: 
1.15      bertrand 4792:       end
1.14      bertrand 4793: _ACEOF
1.15      bertrand 4794: if ac_fn_f77_try_compile "$LINENO"; then :
                   4795:   ac_cv_prog_f77_g=yes
1.1       bertrand 4796: else
1.15      bertrand 4797:   ac_cv_prog_f77_g=no
1.1       bertrand 4798: fi
1.15      bertrand 4799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4800: 
                   4801: fi
1.15      bertrand 4802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4803: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4804: if test "$ac_test_FFLAGS" = set; then
                   4805:   FFLAGS=$ac_save_FFLAGS
                   4806: elif test $ac_cv_prog_f77_g = yes; then
                   4807:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4808:     FFLAGS="-g -O2"
                   4809:   else
                   4810:     FFLAGS="-g"
                   4811:   fi
                   4812: else
                   4813:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4814:     FFLAGS="-O2"
                   4815:   else
                   4816:     FFLAGS=
                   4817:   fi
1.1       bertrand 4818: fi
                   4819: 
1.15      bertrand 4820: if test $ac_compiler_gnu = yes; then
                   4821:   G77=yes
1.1       bertrand 4822: else
1.15      bertrand 4823:   G77=
1.1       bertrand 4824: fi
1.15      bertrand 4825: ac_ext=c
                   4826: ac_cpp='$CPP $CPPFLAGS'
                   4827: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4828: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4829: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4830: 
                   4831: 
1.15      bertrand 4832: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4833:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4834: fi
1.14      bertrand 4835: 
1.15      bertrand 4836: ac_ext=${ac_fc_srcext-f}
                   4837: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4838: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4839: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4840: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4841:   for ac_prog in gfortran
1.15      bertrand 4842:   do
                   4843:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4844: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4846: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4847: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4848:   $as_echo_n "(cached) " >&6
                   4849: else
                   4850:   if test -n "$FC"; then
                   4851:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4852: else
1.15      bertrand 4853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4854: for as_dir in $PATH
                   4855: do
                   4856:   IFS=$as_save_IFS
                   4857:   test -z "$as_dir" && as_dir=.
                   4858:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4859:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4860:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4861:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4862:     break 2
                   4863:   fi
                   4864: done
                   4865:   done
                   4866: IFS=$as_save_IFS
1.1       bertrand 4867: 
                   4868: fi
1.15      bertrand 4869: fi
                   4870: FC=$ac_cv_prog_FC
                   4871: if test -n "$FC"; then
                   4872:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4873: $as_echo "$FC" >&6; }
1.14      bertrand 4874: else
1.15      bertrand 4875:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4876: $as_echo "no" >&6; }
1.14      bertrand 4877: fi
                   4878: 
1.1       bertrand 4879: 
1.15      bertrand 4880:     test -n "$FC" && break
                   4881:   done
                   4882: fi
                   4883: if test -z "$FC"; then
                   4884:   ac_ct_FC=$FC
1.23      bertrand 4885:   for ac_prog in gfortran
1.15      bertrand 4886: do
                   4887:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4888: set dummy $ac_prog; ac_word=$2
                   4889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4890: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4891: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4892:   $as_echo_n "(cached) " >&6
                   4893: else
                   4894:   if test -n "$ac_ct_FC"; then
                   4895:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4896: else
                   4897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4898: for as_dir in $PATH
                   4899: do
                   4900:   IFS=$as_save_IFS
                   4901:   test -z "$as_dir" && as_dir=.
                   4902:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4903:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4904:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4905:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4906:     break 2
                   4907:   fi
                   4908: done
                   4909:   done
                   4910: IFS=$as_save_IFS
1.1       bertrand 4911: 
1.15      bertrand 4912: fi
                   4913: fi
                   4914: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4915: if test -n "$ac_ct_FC"; then
                   4916:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4917: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4918: else
1.15      bertrand 4919:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4920: $as_echo "no" >&6; }
1.1       bertrand 4921: fi
1.14      bertrand 4922: 
1.1       bertrand 4923: 
1.15      bertrand 4924:   test -n "$ac_ct_FC" && break
                   4925: done
1.1       bertrand 4926: 
1.15      bertrand 4927:   if test "x$ac_ct_FC" = x; then
                   4928:     FC=""
                   4929:   else
                   4930:     case $cross_compiling:$ac_tool_warned in
                   4931: yes:)
                   4932: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4933: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4934: ac_tool_warned=yes ;;
1.14      bertrand 4935: esac
1.15      bertrand 4936:     FC=$ac_ct_FC
                   4937:   fi
1.14      bertrand 4938: fi
                   4939: 
                   4940: 
1.15      bertrand 4941: # Provide some information about the compiler.
                   4942: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4943: set X $ac_compile
                   4944: ac_compiler=$2
                   4945: for ac_option in --version -v -V -qversion; do
                   4946:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4947: case "(($ac_try" in
                   4948:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4949:   *) ac_try_echo=$ac_try;;
                   4950: esac
1.15      bertrand 4951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4952: $as_echo "$ac_try_echo"; } >&5
                   4953:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4954:   ac_status=$?
1.15      bertrand 4955:   if test -s conftest.err; then
                   4956:     sed '10a\
                   4957: ... rest of stderr output deleted ...
                   4958:          10q' conftest.err >conftest.er1
                   4959:     cat conftest.er1 >&5
                   4960:   fi
                   4961:   rm -f conftest.er1 conftest.err
                   4962:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4963:   test $ac_status = 0; }
                   4964: done
                   4965: rm -f a.out
                   4966: 
                   4967: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4968: # input file.  (Note that this only needs to work for GNU compilers.)
                   4969: ac_save_ext=$ac_ext
                   4970: ac_ext=F
                   4971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4972: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4973: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4974:   $as_echo_n "(cached) " >&6
1.14      bertrand 4975: else
1.15      bertrand 4976:   cat > conftest.$ac_ext <<_ACEOF
                   4977:       program main
                   4978: #ifndef __GNUC__
                   4979:        choke me
                   4980: #endif
1.14      bertrand 4981: 
1.15      bertrand 4982:       end
                   4983: _ACEOF
                   4984: if ac_fn_fc_try_compile "$LINENO"; then :
                   4985:   ac_compiler_gnu=yes
                   4986: else
                   4987:   ac_compiler_gnu=no
1.14      bertrand 4988: fi
                   4989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4990: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4991: 
1.15      bertrand 4992: fi
                   4993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4994: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4995: ac_ext=$ac_save_ext
                   4996: ac_test_FCFLAGS=${FCFLAGS+set}
                   4997: ac_save_FCFLAGS=$FCFLAGS
                   4998: FCFLAGS=
                   4999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5000: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5001: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5002:   $as_echo_n "(cached) " >&6
                   5003: else
                   5004:   FCFLAGS=-g
                   5005: cat > conftest.$ac_ext <<_ACEOF
                   5006:       program main
1.1       bertrand 5007: 
1.15      bertrand 5008:       end
1.1       bertrand 5009: _ACEOF
1.15      bertrand 5010: if ac_fn_fc_try_compile "$LINENO"; then :
                   5011:   ac_cv_prog_fc_g=yes
1.1       bertrand 5012: else
1.15      bertrand 5013:   ac_cv_prog_fc_g=no
1.1       bertrand 5014: fi
1.14      bertrand 5015: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5016: 
1.15      bertrand 5017: fi
                   5018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5019: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5020: if test "$ac_test_FCFLAGS" = set; then
                   5021:   FCFLAGS=$ac_save_FCFLAGS
                   5022: elif test $ac_cv_prog_fc_g = yes; then
                   5023:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5024:     FCFLAGS="-g -O2"
                   5025:   else
                   5026:     FCFLAGS="-g"
                   5027:   fi
1.1       bertrand 5028: else
1.15      bertrand 5029:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5030:     FCFLAGS="-O2"
                   5031:   else
                   5032:     FCFLAGS=
                   5033:   fi
1.1       bertrand 5034: fi
                   5035: 
1.15      bertrand 5036: ac_ext=c
                   5037: ac_cpp='$CPP $CPPFLAGS'
                   5038: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5039: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5040: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5041: 
                   5042: 
1.15      bertrand 5043: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 5044:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5045: fi
                   5046: 
1.15      bertrand 5047: if test x"$FC" != x""; then
                   5048:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5049:            awk -F. '{ printf("%s", $1);}'`
                   5050:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5051:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5052:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5053:        OPTIMISATION_F=-O3
                   5054:    else
1.23      bertrand 5055:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5056:            OPTIMISATION_F=-O3
                   5057:        else
1.23      bertrand 5058:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5059:                OPTIMISATION_F=-O2
                   5060:            else
1.36      bertrand 5061:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5062:            fi
1.14      bertrand 5063:        fi
                   5064:    fi
                   5065: fi
1.1       bertrand 5066: 
                   5067: 
1.15      bertrand 5068: ac_ext=c
                   5069: ac_cpp='$CPP $CPPFLAGS'
                   5070: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5071: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5072: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5074: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5075: # On Suns, sometimes $CPP names a directory.
                   5076: if test -n "$CPP" && test -d "$CPP"; then
                   5077:   CPP=
                   5078: fi
                   5079: if test -z "$CPP"; then
1.57      bertrand 5080:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5081:   $as_echo_n "(cached) " >&6
                   5082: else
                   5083:       # Double quotes because CPP needs to be expanded
                   5084:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5085:     do
                   5086:       ac_preproc_ok=false
                   5087: for ac_c_preproc_warn_flag in '' yes
                   5088: do
                   5089:   # Use a header file that comes with gcc, so configuring glibc
                   5090:   # with a fresh cross-compiler works.
                   5091:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5092:   # <limits.h> exists even on freestanding compilers.
                   5093:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5094:   # not just through cpp. "Syntax error" is here to catch this case.
                   5095:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5096: /* end confdefs.h.  */
1.15      bertrand 5097: #ifdef __STDC__
                   5098: # include <limits.h>
                   5099: #else
                   5100: # include <assert.h>
                   5101: #endif
                   5102:             Syntax error
1.1       bertrand 5103: _ACEOF
1.15      bertrand 5104: if ac_fn_c_try_cpp "$LINENO"; then :
                   5105: 
1.1       bertrand 5106: else
1.15      bertrand 5107:   # Broken: fails on valid input.
                   5108: continue
1.1       bertrand 5109: fi
1.36      bertrand 5110: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5111: 
1.15      bertrand 5112:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5113:   # can be detected and how.
                   5114:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5115: /* end confdefs.h.  */
                   5116: #include <ac_nonexistent.h>
                   5117: _ACEOF
                   5118: if ac_fn_c_try_cpp "$LINENO"; then :
                   5119:   # Broken: success on invalid input.
                   5120: continue
                   5121: else
                   5122:   # Passes both tests.
                   5123: ac_preproc_ok=:
                   5124: break
1.1       bertrand 5125: fi
1.36      bertrand 5126: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5127: 
1.15      bertrand 5128: done
                   5129: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5130: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5131: if $ac_preproc_ok; then :
                   5132:   break
1.1       bertrand 5133: fi
                   5134: 
1.15      bertrand 5135:     done
                   5136:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5137: 
1.15      bertrand 5138: fi
                   5139:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5140: else
1.15      bertrand 5141:   ac_cv_prog_CPP=$CPP
                   5142: fi
                   5143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5144: $as_echo "$CPP" >&6; }
                   5145: ac_preproc_ok=false
                   5146: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5147: do
1.15      bertrand 5148:   # Use a header file that comes with gcc, so configuring glibc
                   5149:   # with a fresh cross-compiler works.
                   5150:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5151:   # <limits.h> exists even on freestanding compilers.
                   5152:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5153:   # not just through cpp. "Syntax error" is here to catch this case.
                   5154:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5155: /* end confdefs.h.  */
                   5156: #ifdef __STDC__
                   5157: # include <limits.h>
                   5158: #else
                   5159: # include <assert.h>
                   5160: #endif
                   5161:             Syntax error
                   5162: _ACEOF
                   5163: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5164: 
1.15      bertrand 5165: else
                   5166:   # Broken: fails on valid input.
                   5167: continue
                   5168: fi
1.36      bertrand 5169: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5170: 
1.15      bertrand 5171:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5172:   # can be detected and how.
                   5173:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5174: /* end confdefs.h.  */
                   5175: #include <ac_nonexistent.h>
                   5176: _ACEOF
                   5177: if ac_fn_c_try_cpp "$LINENO"; then :
                   5178:   # Broken: success on invalid input.
                   5179: continue
                   5180: else
                   5181:   # Passes both tests.
                   5182: ac_preproc_ok=:
                   5183: break
                   5184: fi
1.36      bertrand 5185: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5186: 
                   5187: done
1.15      bertrand 5188: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5189: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5190: if $ac_preproc_ok; then :
1.1       bertrand 5191: 
1.15      bertrand 5192: else
                   5193:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5194: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5195: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5196: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5197: fi
1.14      bertrand 5198: 
1.15      bertrand 5199: ac_ext=c
                   5200: ac_cpp='$CPP $CPPFLAGS'
                   5201: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5202: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5203: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5204: 
                   5205: 
1.15      bertrand 5206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5207: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5208: 
                   5209: 
1.15      bertrand 5210: # Check whether --with-x was given.
                   5211: if test "${with_x+set}" = set; then :
                   5212:   withval=$with_x;
1.1       bertrand 5213: fi
1.14      bertrand 5214: 
1.15      bertrand 5215: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5216: if test "x$with_x" = xno; then
                   5217:   # The user explicitly disabled X.
                   5218:   have_x=disabled
1.1       bertrand 5219: else
1.15      bertrand 5220:   case $x_includes,$x_libraries in #(
1.57      bertrand 5221:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5222:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5223:   $as_echo_n "(cached) " >&6
1.1       bertrand 5224: else
1.15      bertrand 5225:   # One or both of the vars are not set, and there is no cached value.
                   5226: ac_x_includes=no ac_x_libraries=no
                   5227: rm -f -r conftest.dir
                   5228: if mkdir conftest.dir; then
                   5229:   cd conftest.dir
                   5230:   cat >Imakefile <<'_ACEOF'
                   5231: incroot:
                   5232:    @echo incroot='${INCROOT}'
                   5233: usrlibdir:
                   5234:    @echo usrlibdir='${USRLIBDIR}'
                   5235: libdir:
                   5236:    @echo libdir='${LIBDIR}'
                   5237: _ACEOF
                   5238:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5239:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5240:     for ac_var in incroot usrlibdir libdir; do
                   5241:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5242:     done
                   5243:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5244:     for ac_extension in a so sl dylib la dll; do
                   5245:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5246:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5247:    ac_im_usrlibdir=$ac_im_libdir; break
                   5248:       fi
                   5249:     done
                   5250:     # Screen out bogus values from the imake configuration.  They are
                   5251:     # bogus both because they are the default anyway, and because
                   5252:     # using them would break gcc on systems where it needs fixed includes.
                   5253:     case $ac_im_incroot in
                   5254:    /usr/include) ac_x_includes= ;;
                   5255:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5256:     esac
                   5257:     case $ac_im_usrlibdir in
                   5258:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5259:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5260:     esac
                   5261:   fi
                   5262:   cd ..
                   5263:   rm -f -r conftest.dir
                   5264: fi
                   5265: 
                   5266: # Standard set of common directories for X headers.
                   5267: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5268: ac_x_header_dirs='
                   5269: /usr/X11/include
                   5270: /usr/X11R7/include
                   5271: /usr/X11R6/include
                   5272: /usr/X11R5/include
                   5273: /usr/X11R4/include
1.1       bertrand 5274: 
1.15      bertrand 5275: /usr/include/X11
                   5276: /usr/include/X11R7
                   5277: /usr/include/X11R6
                   5278: /usr/include/X11R5
                   5279: /usr/include/X11R4
1.1       bertrand 5280: 
1.15      bertrand 5281: /usr/local/X11/include
                   5282: /usr/local/X11R7/include
                   5283: /usr/local/X11R6/include
                   5284: /usr/local/X11R5/include
                   5285: /usr/local/X11R4/include
1.1       bertrand 5286: 
1.15      bertrand 5287: /usr/local/include/X11
                   5288: /usr/local/include/X11R7
                   5289: /usr/local/include/X11R6
                   5290: /usr/local/include/X11R5
                   5291: /usr/local/include/X11R4
1.1       bertrand 5292: 
1.15      bertrand 5293: /usr/X386/include
                   5294: /usr/x386/include
                   5295: /usr/XFree86/include/X11
1.1       bertrand 5296: 
1.15      bertrand 5297: /usr/include
                   5298: /usr/local/include
                   5299: /usr/unsupported/include
                   5300: /usr/athena/include
                   5301: /usr/local/x11r5/include
                   5302: /usr/lpp/Xamples/include
1.1       bertrand 5303: 
1.15      bertrand 5304: /usr/openwin/include
                   5305: /usr/openwin/share/include'
1.1       bertrand 5306: 
1.15      bertrand 5307: if test "$ac_x_includes" = no; then
                   5308:   # Guess where to find include files, by looking for Xlib.h.
                   5309:   # First, try using that file with no special directory specified.
                   5310:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5311: /* end confdefs.h.  */
                   5312: #include <X11/Xlib.h>
                   5313: _ACEOF
                   5314: if ac_fn_c_try_cpp "$LINENO"; then :
                   5315:   # We can compile using X headers with no special include directory.
                   5316: ac_x_includes=
1.1       bertrand 5317: else
1.15      bertrand 5318:   for ac_dir in $ac_x_header_dirs; do
                   5319:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5320:     ac_x_includes=$ac_dir
                   5321:     break
                   5322:   fi
                   5323: done
1.1       bertrand 5324: fi
1.36      bertrand 5325: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5326: fi # $ac_x_includes = no
1.1       bertrand 5327: 
1.15      bertrand 5328: if test "$ac_x_libraries" = no; then
                   5329:   # Check for the libraries.
                   5330:   # See if we find them without any special options.
                   5331:   # Don't add to $LIBS permanently.
                   5332:   ac_save_LIBS=$LIBS
                   5333:   LIBS="-lX11 $LIBS"
                   5334:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5335: /* end confdefs.h.  */
1.15      bertrand 5336: #include <X11/Xlib.h>
1.14      bertrand 5337: int
                   5338: main ()
                   5339: {
1.15      bertrand 5340: XrmInitialize ()
1.14      bertrand 5341:   ;
                   5342:   return 0;
                   5343: }
1.1       bertrand 5344: _ACEOF
1.15      bertrand 5345: if ac_fn_c_try_link "$LINENO"; then :
                   5346:   LIBS=$ac_save_LIBS
                   5347: # We can link X programs with no special library path.
                   5348: ac_x_libraries=
1.1       bertrand 5349: else
1.15      bertrand 5350:   LIBS=$ac_save_LIBS
                   5351: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5352: do
                   5353:   # Don't even attempt the hair of trying to link an X program!
                   5354:   for ac_extension in a so sl dylib la dll; do
                   5355:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5356:       ac_x_libraries=$ac_dir
                   5357:       break 2
                   5358:     fi
                   5359:   done
                   5360: done
                   5361: fi
                   5362: rm -f core conftest.err conftest.$ac_objext \
                   5363:     conftest$ac_exeext conftest.$ac_ext
                   5364: fi # $ac_x_libraries = no
1.1       bertrand 5365: 
1.15      bertrand 5366: case $ac_x_includes,$ac_x_libraries in #(
                   5367:   no,* | *,no | *\'*)
                   5368:     # Didn't find X, or a directory has "'" in its name.
                   5369:     ac_cv_have_x="have_x=no";; #(
                   5370:   *)
                   5371:     # Record where we found X for the cache.
                   5372:     ac_cv_have_x="have_x=yes\
                   5373:    ac_x_includes='$ac_x_includes'\
                   5374:    ac_x_libraries='$ac_x_libraries'"
                   5375: esac
1.1       bertrand 5376: fi
1.15      bertrand 5377: ;; #(
                   5378:     *) have_x=yes;;
                   5379:   esac
                   5380:   eval "$ac_cv_have_x"
                   5381: fi # $with_x != no
1.1       bertrand 5382: 
1.15      bertrand 5383: if test "$have_x" != yes; then
                   5384:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5385: $as_echo "$have_x" >&6; }
                   5386:   no_x=yes
1.14      bertrand 5387: else
1.15      bertrand 5388:   # If each of the values was on the command line, it overrides each guess.
                   5389:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5390:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5391:   # Update the cache value to reflect the command line values.
                   5392:   ac_cv_have_x="have_x=yes\
                   5393:    ac_x_includes='$x_includes'\
                   5394:    ac_x_libraries='$x_libraries'"
                   5395:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5396: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5397: fi
1.1       bertrand 5398: 
1.15      bertrand 5399: if test "$no_x" = yes; then
                   5400:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5401: 
1.15      bertrand 5402: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5403: 
1.15      bertrand 5404:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5405: else
1.15      bertrand 5406:   if test -n "$x_includes"; then
                   5407:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5408:   fi
                   5409: 
                   5410:   # It would also be nice to do this for all -L options, not just this one.
                   5411:   if test -n "$x_libraries"; then
                   5412:     X_LIBS="$X_LIBS -L$x_libraries"
                   5413:     # For Solaris; some versions of Sun CC require a space after -R and
                   5414:     # others require no space.  Words are not sufficient . . . .
                   5415:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5416: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5417:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5418:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5419:     ac_c_werror_flag=yes
                   5420:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5421: /* end confdefs.h.  */
1.1       bertrand 5422: 
1.15      bertrand 5423: int
                   5424: main ()
                   5425: {
1.1       bertrand 5426: 
1.15      bertrand 5427:   ;
                   5428:   return 0;
                   5429: }
                   5430: _ACEOF
                   5431: if ac_fn_c_try_link "$LINENO"; then :
                   5432:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5433: $as_echo "no" >&6; }
                   5434:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5435: else
1.15      bertrand 5436:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5437:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5438: /* end confdefs.h.  */
1.1       bertrand 5439: 
1.14      bertrand 5440: int
                   5441: main ()
                   5442: {
1.15      bertrand 5443: 
                   5444:   ;
1.14      bertrand 5445:   return 0;
                   5446: }
                   5447: _ACEOF
1.15      bertrand 5448: if ac_fn_c_try_link "$LINENO"; then :
                   5449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5450: $as_echo "yes" >&6; }
                   5451:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5452: else
1.15      bertrand 5453:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5454: $as_echo "neither works" >&6; }
1.14      bertrand 5455: fi
1.15      bertrand 5456: rm -f core conftest.err conftest.$ac_objext \
                   5457:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5458: fi
1.15      bertrand 5459: rm -f core conftest.err conftest.$ac_objext \
                   5460:     conftest$ac_exeext conftest.$ac_ext
                   5461:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5462:     LIBS=$ac_xsave_LIBS
                   5463:   fi
1.1       bertrand 5464: 
1.15      bertrand 5465:   # Check for system-dependent libraries X programs must link with.
                   5466:   # Do this before checking for the system-independent R6 libraries
                   5467:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5468: 
1.15      bertrand 5469:   if test "$ISC" = yes; then
                   5470:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5471:   else
                   5472:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5473:     # libraries were built with DECnet support.  And Karl Berry says
                   5474:     # the Alpha needs dnet_stub (dnet does not exist).
                   5475:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5476:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5477: /* end confdefs.h.  */
1.1       bertrand 5478: 
1.15      bertrand 5479: /* Override any GCC internal prototype to avoid an error.
                   5480:    Use char because int might match the return type of a GCC
                   5481:    builtin and then its argument prototype would still apply.  */
                   5482: #ifdef __cplusplus
                   5483: extern "C"
                   5484: #endif
                   5485: char XOpenDisplay ();
                   5486: int
                   5487: main ()
                   5488: {
                   5489: return XOpenDisplay ();
                   5490:   ;
                   5491:   return 0;
                   5492: }
1.1       bertrand 5493: _ACEOF
1.15      bertrand 5494: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5495: 
                   5496: else
1.15      bertrand 5497:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5498: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5499: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5500:   $as_echo_n "(cached) " >&6
                   5501: else
                   5502:   ac_check_lib_save_LIBS=$LIBS
                   5503: LIBS="-ldnet  $LIBS"
                   5504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5505: /* end confdefs.h.  */
1.14      bertrand 5506: 
1.15      bertrand 5507: /* Override any GCC internal prototype to avoid an error.
                   5508:    Use char because int might match the return type of a GCC
                   5509:    builtin and then its argument prototype would still apply.  */
                   5510: #ifdef __cplusplus
                   5511: extern "C"
                   5512: #endif
                   5513: char dnet_ntoa ();
                   5514: int
                   5515: main ()
                   5516: {
                   5517: return dnet_ntoa ();
                   5518:   ;
                   5519:   return 0;
                   5520: }
1.1       bertrand 5521: _ACEOF
1.15      bertrand 5522: if ac_fn_c_try_link "$LINENO"; then :
                   5523:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5524: else
1.15      bertrand 5525:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5526: fi
1.15      bertrand 5527: rm -f core conftest.err conftest.$ac_objext \
                   5528:     conftest$ac_exeext conftest.$ac_ext
                   5529: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5530: fi
1.15      bertrand 5531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5532: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5533: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5534:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5535: fi
                   5536: 
1.15      bertrand 5537:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5538:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5539: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5540: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5541:   $as_echo_n "(cached) " >&6
1.14      bertrand 5542: else
1.15      bertrand 5543:   ac_check_lib_save_LIBS=$LIBS
                   5544: LIBS="-ldnet_stub  $LIBS"
                   5545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5546: /* end confdefs.h.  */
1.15      bertrand 5547: 
                   5548: /* Override any GCC internal prototype to avoid an error.
                   5549:    Use char because int might match the return type of a GCC
                   5550:    builtin and then its argument prototype would still apply.  */
                   5551: #ifdef __cplusplus
                   5552: extern "C"
                   5553: #endif
                   5554: char dnet_ntoa ();
1.1       bertrand 5555: int
                   5556: main ()
                   5557: {
1.15      bertrand 5558: return dnet_ntoa ();
1.1       bertrand 5559:   ;
                   5560:   return 0;
                   5561: }
                   5562: _ACEOF
1.15      bertrand 5563: if ac_fn_c_try_link "$LINENO"; then :
                   5564:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5565: else
1.15      bertrand 5566:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5567: fi
                   5568: rm -f core conftest.err conftest.$ac_objext \
                   5569:     conftest$ac_exeext conftest.$ac_ext
                   5570: LIBS=$ac_check_lib_save_LIBS
                   5571: fi
                   5572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5573: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5574: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5575:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5576: fi
1.14      bertrand 5577: 
1.15      bertrand 5578:     fi
1.1       bertrand 5579: fi
1.15      bertrand 5580: rm -f core conftest.err conftest.$ac_objext \
                   5581:     conftest$ac_exeext conftest.$ac_ext
                   5582:     LIBS="$ac_xsave_LIBS"
                   5583: 
                   5584:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5585:     # to get the SysV transport functions.
                   5586:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5587:     # needs -lnsl.
                   5588:     # The nsl library prevents programs from opening the X display
                   5589:     # on Irix 5.2, according to T.E. Dickey.
                   5590:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5591:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5592:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5593: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5594: 
                   5595: fi
                   5596: 
1.15      bertrand 5597:     if test $ac_cv_func_gethostbyname = no; then
                   5598:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5599: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5600: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5601:   $as_echo_n "(cached) " >&6
1.1       bertrand 5602: else
1.15      bertrand 5603:   ac_check_lib_save_LIBS=$LIBS
                   5604: LIBS="-lnsl  $LIBS"
                   5605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5606: /* end confdefs.h.  */
1.15      bertrand 5607: 
                   5608: /* Override any GCC internal prototype to avoid an error.
                   5609:    Use char because int might match the return type of a GCC
                   5610:    builtin and then its argument prototype would still apply.  */
                   5611: #ifdef __cplusplus
                   5612: extern "C"
                   5613: #endif
                   5614: char gethostbyname ();
1.1       bertrand 5615: int
                   5616: main ()
                   5617: {
1.15      bertrand 5618: return gethostbyname ();
1.1       bertrand 5619:   ;
                   5620:   return 0;
                   5621: }
                   5622: _ACEOF
1.15      bertrand 5623: if ac_fn_c_try_link "$LINENO"; then :
                   5624:   ac_cv_lib_nsl_gethostbyname=yes
                   5625: else
                   5626:   ac_cv_lib_nsl_gethostbyname=no
                   5627: fi
                   5628: rm -f core conftest.err conftest.$ac_objext \
                   5629:     conftest$ac_exeext conftest.$ac_ext
                   5630: LIBS=$ac_check_lib_save_LIBS
                   5631: fi
                   5632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5633: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5634: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5635:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5636: fi
                   5637: 
                   5638:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5639:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5640: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5641: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5642:   $as_echo_n "(cached) " >&6
                   5643: else
                   5644:   ac_check_lib_save_LIBS=$LIBS
                   5645: LIBS="-lbsd  $LIBS"
                   5646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5647: /* end confdefs.h.  */
1.15      bertrand 5648: 
                   5649: /* Override any GCC internal prototype to avoid an error.
                   5650:    Use char because int might match the return type of a GCC
                   5651:    builtin and then its argument prototype would still apply.  */
                   5652: #ifdef __cplusplus
                   5653: extern "C"
                   5654: #endif
                   5655: char gethostbyname ();
1.1       bertrand 5656: int
                   5657: main ()
                   5658: {
1.15      bertrand 5659: return gethostbyname ();
1.1       bertrand 5660:   ;
                   5661:   return 0;
                   5662: }
                   5663: _ACEOF
1.15      bertrand 5664: if ac_fn_c_try_link "$LINENO"; then :
                   5665:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5666: else
1.15      bertrand 5667:   ac_cv_lib_bsd_gethostbyname=no
                   5668: fi
                   5669: rm -f core conftest.err conftest.$ac_objext \
                   5670:     conftest$ac_exeext conftest.$ac_ext
                   5671: LIBS=$ac_check_lib_save_LIBS
                   5672: fi
                   5673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5674: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5675: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5676:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5677: fi
                   5678: 
                   5679:       fi
                   5680:     fi
                   5681: 
                   5682:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5683:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5684:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5685:     # on later versions), says Simon Leinen: it contains gethostby*
                   5686:     # variants that don't use the name server (or something).  -lsocket
                   5687:     # must be given before -lnsl if both are needed.  We assume that
                   5688:     # if connect needs -lnsl, so does gethostbyname.
                   5689:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5690: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5691: 
1.1       bertrand 5692: fi
                   5693: 
1.15      bertrand 5694:     if test $ac_cv_func_connect = no; then
                   5695:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5696: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5697: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5698:   $as_echo_n "(cached) " >&6
1.14      bertrand 5699: else
1.15      bertrand 5700:   ac_check_lib_save_LIBS=$LIBS
                   5701: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5703: /* end confdefs.h.  */
1.1       bertrand 5704: 
1.15      bertrand 5705: /* Override any GCC internal prototype to avoid an error.
                   5706:    Use char because int might match the return type of a GCC
                   5707:    builtin and then its argument prototype would still apply.  */
                   5708: #ifdef __cplusplus
                   5709: extern "C"
                   5710: #endif
                   5711: char connect ();
1.14      bertrand 5712: int
                   5713: main ()
                   5714: {
1.15      bertrand 5715: return connect ();
1.14      bertrand 5716:   ;
                   5717:   return 0;
                   5718: }
                   5719: _ACEOF
1.15      bertrand 5720: if ac_fn_c_try_link "$LINENO"; then :
                   5721:   ac_cv_lib_socket_connect=yes
                   5722: else
                   5723:   ac_cv_lib_socket_connect=no
                   5724: fi
                   5725: rm -f core conftest.err conftest.$ac_objext \
                   5726:     conftest$ac_exeext conftest.$ac_ext
                   5727: LIBS=$ac_check_lib_save_LIBS
                   5728: fi
                   5729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5730: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5731: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5732:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5733: fi
                   5734: 
                   5735:     fi
                   5736: 
                   5737:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5738:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5739: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5740: 
                   5741: fi
                   5742: 
                   5743:     if test $ac_cv_func_remove = no; then
                   5744:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5745: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5746: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5747:   $as_echo_n "(cached) " >&6
                   5748: else
                   5749:   ac_check_lib_save_LIBS=$LIBS
                   5750: LIBS="-lposix  $LIBS"
                   5751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5752: /* end confdefs.h.  */
1.15      bertrand 5753: 
                   5754: /* Override any GCC internal prototype to avoid an error.
                   5755:    Use char because int might match the return type of a GCC
                   5756:    builtin and then its argument prototype would still apply.  */
                   5757: #ifdef __cplusplus
                   5758: extern "C"
                   5759: #endif
                   5760: char remove ();
1.1       bertrand 5761: int
                   5762: main ()
                   5763: {
1.15      bertrand 5764: return remove ();
1.1       bertrand 5765:   ;
                   5766:   return 0;
                   5767: }
                   5768: _ACEOF
1.15      bertrand 5769: if ac_fn_c_try_link "$LINENO"; then :
                   5770:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5771: else
1.15      bertrand 5772:   ac_cv_lib_posix_remove=no
                   5773: fi
                   5774: rm -f core conftest.err conftest.$ac_objext \
                   5775:     conftest$ac_exeext conftest.$ac_ext
                   5776: LIBS=$ac_check_lib_save_LIBS
                   5777: fi
                   5778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5779: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5780: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5781:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5782: fi
1.1       bertrand 5783: 
1.15      bertrand 5784:     fi
1.14      bertrand 5785: 
1.15      bertrand 5786:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5787:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5788: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5789: 
                   5790: fi
                   5791: 
1.15      bertrand 5792:     if test $ac_cv_func_shmat = no; then
                   5793:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5794: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5795: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5796:   $as_echo_n "(cached) " >&6
                   5797: else
                   5798:   ac_check_lib_save_LIBS=$LIBS
                   5799: LIBS="-lipc  $LIBS"
                   5800: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5801: /* end confdefs.h.  */
1.15      bertrand 5802: 
                   5803: /* Override any GCC internal prototype to avoid an error.
                   5804:    Use char because int might match the return type of a GCC
                   5805:    builtin and then its argument prototype would still apply.  */
                   5806: #ifdef __cplusplus
                   5807: extern "C"
                   5808: #endif
                   5809: char shmat ();
1.1       bertrand 5810: int
                   5811: main ()
                   5812: {
1.15      bertrand 5813: return shmat ();
1.1       bertrand 5814:   ;
                   5815:   return 0;
                   5816: }
                   5817: _ACEOF
1.15      bertrand 5818: if ac_fn_c_try_link "$LINENO"; then :
                   5819:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5820: else
1.15      bertrand 5821:   ac_cv_lib_ipc_shmat=no
                   5822: fi
                   5823: rm -f core conftest.err conftest.$ac_objext \
                   5824:     conftest$ac_exeext conftest.$ac_ext
                   5825: LIBS=$ac_check_lib_save_LIBS
                   5826: fi
                   5827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5828: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5829: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5830:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5831: fi
1.14      bertrand 5832: 
1.15      bertrand 5833:     fi
                   5834:   fi
1.1       bertrand 5835: 
1.15      bertrand 5836:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5837:   ac_save_LDFLAGS=$LDFLAGS
                   5838:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5839:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5840:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5841:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5842:   # These have to be linked with before -lX11, unlike the other
                   5843:   # libraries we check for below, so use a different variable.
                   5844:   # John Interrante, Karl Berry
                   5845:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5846: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5847: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5848:   $as_echo_n "(cached) " >&6
1.1       bertrand 5849: else
1.15      bertrand 5850:   ac_check_lib_save_LIBS=$LIBS
                   5851: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5853: /* end confdefs.h.  */
1.15      bertrand 5854: 
                   5855: /* Override any GCC internal prototype to avoid an error.
                   5856:    Use char because int might match the return type of a GCC
                   5857:    builtin and then its argument prototype would still apply.  */
                   5858: #ifdef __cplusplus
                   5859: extern "C"
                   5860: #endif
                   5861: char IceConnectionNumber ();
1.1       bertrand 5862: int
                   5863: main ()
                   5864: {
1.15      bertrand 5865: return IceConnectionNumber ();
1.1       bertrand 5866:   ;
                   5867:   return 0;
                   5868: }
                   5869: _ACEOF
1.15      bertrand 5870: if ac_fn_c_try_link "$LINENO"; then :
                   5871:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5872: else
1.15      bertrand 5873:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5874: fi
                   5875: rm -f core conftest.err conftest.$ac_objext \
                   5876:     conftest$ac_exeext conftest.$ac_ext
                   5877: LIBS=$ac_check_lib_save_LIBS
                   5878: fi
                   5879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5880: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5881: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5882:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5883: fi
                   5884: 
                   5885:   LDFLAGS=$ac_save_LDFLAGS
                   5886: 
                   5887: fi
                   5888: 
1.14      bertrand 5889: 
1.15      bertrand 5890: if test "$ac_x_includes" != "no"; then
                   5891:    if test x"$ac_x_includes" != x; then
                   5892:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5893:        includeX="-I$ac_x_includes"
                   5894:    fi
1.1       bertrand 5895: fi
1.15      bertrand 5896: if test "$ac_x_libraries" != "no"; then
                   5897:    if test x"$ac_x_libraries" != x; then
                   5898:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5899:    fi
1.1       bertrand 5900: fi
1.15      bertrand 5901: 
1.64      bertrand 5902: 
1.69      bertrand 5903: # Check whether --with-32bits-abi was given.
                   5904: if test "${with_32bits_abi+set}" = set; then :
                   5905:   withval=$with_32bits_abi;
1.64      bertrand 5906: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5907:    ABI=
1.64      bertrand 5908: else
1.65      bertrand 5909:    ABI=-m32
                   5910: fi
1.64      bertrand 5911: else
                   5912: 
1.68      bertrand 5913:    ABI=
1.64      bertrand 5914: 
                   5915: 
                   5916: fi
                   5917: 
                   5918: 
1.68      bertrand 5919: if test x$ABI = x; then
1.66      bertrand 5920: 
1.69      bertrand 5921: # Check whether --with-64bits-abi was given.
                   5922: if test "${with_64bits_abi+set}" = set; then :
                   5923:   withval=$with_64bits_abi;
1.67      bertrand 5924: if test "$with-64bits-abi" = "no"; then
                   5925:    ABI=
                   5926: else
                   5927:    ABI=-m64
                   5928: fi
                   5929: else
                   5930: 
1.68      bertrand 5931:    ABI=
1.67      bertrand 5932: 
                   5933: 
                   5934: fi
                   5935: 
1.68      bertrand 5936: fi
1.67      bertrand 5937: 
1.69      bertrand 5938: LDFLAGS="$LDFLAGS $ABI"
                   5939: 
1.67      bertrand 5940: 
                   5941: # Check whether --with-rplcas was given.
                   5942: if test "${with_rplcas+set}" = set; then :
                   5943:   withval=$with_rplcas;
                   5944: if test "$with-rplcas" = "no"; then
                   5945:    RPLCAS=-URPLCAS
                   5946:    LIBRPLCAS=
                   5947: else
                   5948:    RPLCAS=-DRPLCAS
                   5949:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5950: fi
                   5951: else
                   5952: 
                   5953:    RPLCAS=-URPLCAS
                   5954:    LIBRPLCAS=
                   5955: 
                   5956: 
                   5957: fi
                   5958: 
                   5959: 
                   5960: 
                   5961: 
                   5962: 
1.65      bertrand 5963: 
1.15      bertrand 5964: # Check whether --enable-optimization was given.
                   5965: if test "${enable_optimization+set}" = set; then :
                   5966:   enableval=$enable_optimization;
                   5967: if test "$enableval" = "no"; then
1.69      bertrand 5968:    CFLAGS=$ABI
                   5969:    FFLAGS=$ABI
                   5970:    CXXFLAGS=$ABI
                   5971:    FCFLAGS=$ABI
                   5972: else
                   5973:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   5974:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   5975:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   5976:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 5977: fi
1.15      bertrand 5978: else
1.14      bertrand 5979: 
1.69      bertrand 5980:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   5981:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   5982:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   5983:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 5984: 
                   5985: 
1.15      bertrand 5986: fi
1.1       bertrand 5987: 
                   5988: 
1.36      bertrand 5989: # Check whether --enable-sysv-semaphores was given.
                   5990: if test "${enable_sysv_semaphores+set}" = set; then :
                   5991:   enableval=$enable_sysv_semaphores;
                   5992: if test "$enableval" = "no"; then
                   5993:    IPCS_SYSV=no
                   5994: else
                   5995:    IPCS_SYSV=yes
                   5996: fi
                   5997: else
                   5998:   IPCS_SYSV=no
                   5999: fi
                   6000: 
                   6001: 
1.30      bertrand 6002: # Check whether --enable-full-static was given.
                   6003: if test "${enable_full_static+set}" = set; then :
                   6004:   enableval=$enable_full_static;
                   6005: if test "$enableval" = "no"; then
                   6006:    STATIC=no
                   6007: else
                   6008:    STATIC=yes
                   6009: fi
                   6010: else
                   6011:   STATIC=no
                   6012: fi
                   6013: 
                   6014: 
1.15      bertrand 6015: # Check whether --enable-final-encoding was given.
                   6016: if test "${enable_final_encoding+set}" = set; then :
                   6017:   enableval=$enable_final_encoding;
                   6018: if test "$enableval" = "no"; then
                   6019:    FINAL_ENCODING="\$(shell locale charmap | \
                   6020:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6021:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6022: else
1.15      bertrand 6023:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6024:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6025: fi
1.1       bertrand 6026: else
1.35      bertrand 6027: 
                   6028: FORCED_FINAL_ENCODING=0
                   6029: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6030:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6031: fi
                   6032: 
1.14      bertrand 6033: 
1.15      bertrand 6034: # Check whether --enable-tex was given.
                   6035: if test "${enable_tex+set}" = set; then :
                   6036:   enableval=$enable_tex;
                   6037: if test "$enableval" = "no"; then
                   6038:    TEX_SUPPORT=no
                   6039: else
                   6040:    TEX_SUPPORT=yes
1.1       bertrand 6041: fi
1.15      bertrand 6042: else
                   6043:   TEX_SUPPORT=guessed
                   6044: fi
                   6045: 
1.14      bertrand 6046: 
1.15      bertrand 6047: # Check whether --enable-vim was given.
                   6048: if test "${enable_vim+set}" = set; then :
                   6049:   enableval=$enable_vim;
                   6050: if test "$enableval" = "no"; then
                   6051:    VIM_SUPPORT=no
                   6052: else
                   6053:    VIM_SUPPORT=yes
                   6054: fi
                   6055: else
                   6056:   VIM_SUPPORT=guessed
1.1       bertrand 6057: fi
                   6058: 
1.15      bertrand 6059: 
                   6060: # Check whether --enable-embedded-gnuplot was given.
                   6061: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6062:   enableval=$enable_embedded_gnuplot;
                   6063: if test "$enableval" = "no"; then
                   6064:    MYGNUPLOT=no
                   6065: else
                   6066:    MYGNUPLOT=yes
                   6067: fi
1.1       bertrand 6068: else
                   6069: 
1.15      bertrand 6070: MYGNUPLOT=yes
                   6071: fi
                   6072: 
1.14      bertrand 6073: 
1.15      bertrand 6074: # Check whether --enable-gnuplot was given.
                   6075: if test "${enable_gnuplot+set}" = set; then :
                   6076:   enableval=$enable_gnuplot;
                   6077: if test "$enableval" = "no"; then
                   6078:    GNUPLOT_SUPPORT=no
                   6079:    MYGNUPLOT=no
                   6080:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6081: else
                   6082:    GNUPLOT_SUPPORT=yes
                   6083:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6084: fi
1.1       bertrand 6085: else
                   6086: 
1.15      bertrand 6087: if test "$MYGNUPLOT" = "yes"; then
                   6088:    GNUPLOT_SUPPORT=yes
                   6089:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6090: else
                   6091:    GNUPLOT_SUPPORT=guessed
                   6092:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6093: fi
1.1       bertrand 6094: fi
                   6095: 
1.15      bertrand 6096: 
                   6097: # Check whether --enable-motif was given.
                   6098: if test "${enable_motif+set}" = set; then :
                   6099:   enableval=$enable_motif;
                   6100: if test "$enableval" = "no"; then
                   6101:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6102: else
                   6103:    CFLAGS_ORIG=$CFLAGS
                   6104:    LIBS_ORIG=$LIBS
                   6105:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6106:    LIBS="$LIB $X_LIBS"
                   6107:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6108: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6109: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6110:   $as_echo_n "(cached) " >&6
1.1       bertrand 6111: else
1.15      bertrand 6112:   ac_check_lib_save_LIBS=$LIBS
                   6113: LIBS="-lXm  $LIBS"
                   6114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6115: /* end confdefs.h.  */
1.14      bertrand 6116: 
                   6117: 
1.1       bertrand 6118: int
                   6119: main ()
                   6120: {
1.15      bertrand 6121: return main ();
1.1       bertrand 6122:   ;
                   6123:   return 0;
                   6124: }
                   6125: _ACEOF
1.15      bertrand 6126: if ac_fn_c_try_link "$LINENO"; then :
                   6127:   ac_cv_lib_Xm_main=yes
                   6128: else
                   6129:   ac_cv_lib_Xm_main=no
                   6130: fi
                   6131: rm -f core conftest.err conftest.$ac_objext \
                   6132:     conftest$ac_exeext conftest.$ac_ext
                   6133: LIBS=$ac_check_lib_save_LIBS
                   6134: fi
                   6135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6136: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6137: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6138:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6139: else
1.15      bertrand 6140:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6141: fi
1.14      bertrand 6142: 
1.15      bertrand 6143:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6144:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6145: Motif flag is disabled.
                   6146: " >&5
                   6147: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6148: Motif flag is disabled.
                   6149: " >&2;}
                   6150:    fi
                   6151:    LIBS=$LIBS_ORIG
                   6152:    CFLAGS=$CFLAGS_ORIG
                   6153: fi
                   6154: else
                   6155:   MOTIF_SUPPORT=guessed
1.1       bertrand 6156: fi
                   6157: 
1.15      bertrand 6158: 
                   6159: # Check whether --enable-experimental was given.
                   6160: if test "${enable_experimental+set}" = set; then :
                   6161:   enableval=$enable_experimental;
                   6162: if test "$enableval" = "no"; then
                   6163:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6164: else
                   6165:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6166: fi
1.14      bertrand 6167: else
1.15      bertrand 6168:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6169: fi
                   6170: 
1.1       bertrand 6171: 
1.15      bertrand 6172: # Check whether --enable-debug was given.
                   6173: if test "${enable_debug+set}" = set; then :
                   6174:   enableval=$enable_debug;
                   6175: if test "$enableval" = "no"; then
1.24      bertrand 6176:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6177: else
1.24      bertrand 6178:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6179: fi
                   6180: else
1.24      bertrand 6181:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6182: fi
1.1       bertrand 6183: 
1.15      bertrand 6184: 
                   6185: # Check whether --enable-profile was given.
                   6186: if test "${enable_profile+set}" = set; then :
                   6187:   enableval=$enable_profile;
                   6188: if test "$enableval" = "no"; then
                   6189:    PROFILAGE=""
                   6190: else
                   6191:    PROFILAGE="-pg"
                   6192: fi
                   6193: else
                   6194:   PROFILAGE=""
1.1       bertrand 6195: fi
                   6196: 
1.14      bertrand 6197: 
                   6198: 
1.15      bertrand 6199: 
                   6200: if test ! -d tools; then
                   6201:    mkdir tools
                   6202: fi
                   6203: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6204:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6205:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6206:    (cd "$srcdir/tools/"$NCURSES && \
                   6207:            for i in ../$NCURSES*.patch.gz;
                   6208:            do gunzip -c $i | patch -p1;
                   6209:            done);
1.15      bertrand 6210: fi
                   6211: if test ! -d "$srcdir"/tools/$READLINE; then
                   6212:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6213:            (cd "$srcdir/tools" && tar -xf -)
                   6214: fi
                   6215: if test ! -d "$srcdir"/tools/$UNITS; then
                   6216:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6217:            (cd "$srcdir/tools" && tar -xf -)
                   6218: fi
                   6219: if test ! -d "$srcdir"/tools/$GSL; then
                   6220:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6221:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6222:    if test $(uname) = "OS/2"; then
                   6223:        (cd "$srcdir"/tools/$GSL; \
                   6224:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6225:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6226:                \mv -f $TMP ltmain.sh)
                   6227:    fi
1.15      bertrand 6228: fi
                   6229: if test ! -d "$srcdir"/tools/$GPP; then
                   6230:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6231:            (cd "$srcdir/tools" && tar -xf -)
                   6232: fi
                   6233: if test ! -d "$srcdir"/tools/$FILE; then
                   6234:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6235:            (cd "$srcdir/tools" && tar -xf - )
                   6236:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6237: fi
                   6238: if test ! -d "$srcdir"/tools/$ICONV; then
                   6239:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6240:            (cd "$srcdir/tools" && tar -xf -)
                   6241: fi
                   6242: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6243:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6244:            (cd "$srcdir/tools" && tar -xf -)
                   6245: fi
1.76      bertrand 6246: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6247:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6248:            (cd "$srcdir/tools" && tar -xf -)
                   6249: fi
1.15      bertrand 6250: if test ! -d tools/$OPENSSL; then
                   6251:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6252:            (cd tools && tar -xf -)
1.1       bertrand 6253: fi
1.55      bertrand 6254: if test ! -d rplcas; then
                   6255:    mkdir rplcas
                   6256: fi
                   6257: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6258:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6259:            (cd "$srcdir/rplcas" && tar -xf -)
                   6260: fi
                   6261: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6262:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6263:            (cd "$srcdir/rplcas" && tar -xf -)
                   6264: fi
1.56      bertrand 6265: if test ! -d rplcas/$NTL; then
                   6266:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6267:            (cd rplcas && tar -xf -)
                   6268: fi
                   6269: if test ! -d rplcas/$COCOA; then
                   6270:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6271:            (cd rplcas && tar -xf -)
                   6272: fi
                   6273: if test ! -d rplcas/$PARI; then
                   6274:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6275:            (cd rplcas && tar -xf -)
                   6276: fi
                   6277: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6278:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6279:            (cd "$srcdir/rplcas" && tar -xf -)
                   6280: fi
1.1       bertrand 6281: 
                   6282: 
                   6283: 
1.15      bertrand 6284: # Check whether --enable-final-run-path was given.
                   6285: if test "${enable_final_run_path+set}" = set; then :
                   6286:   enableval=$enable_final_run_path;
                   6287:    if test "x$enable_final_run_path" = "x"; then
                   6288:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6289: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6290:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6291:    else
                   6292:        RUNPATH="$enable_final_run_path"
                   6293:    fi
1.1       bertrand 6294: 
                   6295: else
1.15      bertrand 6296:   RUNPATH="\${prefix}"
1.1       bertrand 6297: 
                   6298: fi
                   6299: 
1.15      bertrand 6300: 
                   6301: 
                   6302: 
                   6303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6304: $as_echo_n "checking whether ln -s works... " >&6; }
                   6305: LN_S=$as_ln_s
                   6306: if test "$LN_S" = "ln -s"; then
                   6307:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6308: $as_echo "yes" >&6; }
                   6309: else
                   6310:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6311: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6312: fi
                   6313: 
1.15      bertrand 6314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6315: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6316: set x ${MAKE-make}
                   6317: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6318: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6319:   $as_echo_n "(cached) " >&6
1.1       bertrand 6320: else
1.15      bertrand 6321:   cat >conftest.make <<\_ACEOF
                   6322: SHELL = /bin/sh
                   6323: all:
                   6324:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6325: _ACEOF
1.36      bertrand 6326: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6327: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6328:   *@@@%%%=?*=@@@%%%*)
                   6329:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6330:   *)
                   6331:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6332: esac
1.15      bertrand 6333: rm -f conftest.make
                   6334: fi
                   6335: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6337: $as_echo "yes" >&6; }
                   6338:   SET_MAKE=
                   6339: else
                   6340:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6341: $as_echo "no" >&6; }
                   6342:   SET_MAKE="MAKE=${MAKE-make}"
                   6343: fi
1.1       bertrand 6344: 
1.15      bertrand 6345: if test -n "$ac_tool_prefix"; then
                   6346:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6347: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6349: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6350: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6351:   $as_echo_n "(cached) " >&6
                   6352: else
                   6353:   if test -n "$RANLIB"; then
                   6354:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6355: else
1.15      bertrand 6356: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6357: for as_dir in $PATH
                   6358: do
                   6359:   IFS=$as_save_IFS
                   6360:   test -z "$as_dir" && as_dir=.
                   6361:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6362:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6363:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6364:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6365:     break 2
                   6366:   fi
                   6367: done
                   6368:   done
                   6369: IFS=$as_save_IFS
1.1       bertrand 6370: 
                   6371: fi
1.15      bertrand 6372: fi
                   6373: RANLIB=$ac_cv_prog_RANLIB
                   6374: if test -n "$RANLIB"; then
                   6375:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6376: $as_echo "$RANLIB" >&6; }
                   6377: else
                   6378:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6379: $as_echo "no" >&6; }
                   6380: fi
                   6381: 
1.1       bertrand 6382: 
1.15      bertrand 6383: fi
                   6384: if test -z "$ac_cv_prog_RANLIB"; then
                   6385:   ac_ct_RANLIB=$RANLIB
                   6386:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6387: set dummy ranlib; ac_word=$2
                   6388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6389: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6390: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6391:   $as_echo_n "(cached) " >&6
                   6392: else
                   6393:   if test -n "$ac_ct_RANLIB"; then
                   6394:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6395: else
                   6396: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6397: for as_dir in $PATH
                   6398: do
                   6399:   IFS=$as_save_IFS
                   6400:   test -z "$as_dir" && as_dir=.
                   6401:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6402:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6403:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6404:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6405:     break 2
                   6406:   fi
                   6407: done
1.14      bertrand 6408:   done
1.15      bertrand 6409: IFS=$as_save_IFS
                   6410: 
                   6411: fi
                   6412: fi
                   6413: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6414: if test -n "$ac_ct_RANLIB"; then
                   6415:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6416: $as_echo "$ac_ct_RANLIB" >&6; }
                   6417: else
                   6418:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6419: $as_echo "no" >&6; }
                   6420: fi
                   6421: 
                   6422:   if test "x$ac_ct_RANLIB" = x; then
                   6423:     RANLIB=":"
                   6424:   else
                   6425:     case $cross_compiling:$ac_tool_warned in
                   6426: yes:)
                   6427: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6428: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6429: ac_tool_warned=yes ;;
                   6430: esac
                   6431:     RANLIB=$ac_ct_RANLIB
                   6432:   fi
1.14      bertrand 6433: else
1.15      bertrand 6434:   RANLIB="$ac_cv_prog_RANLIB"
                   6435: fi
1.1       bertrand 6436: 
                   6437: 
1.15      bertrand 6438: # Extract the first word of "nawk", so it can be a program name with args.
                   6439: set dummy nawk; ac_word=$2
                   6440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6441: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6442: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6443:   $as_echo_n "(cached) " >&6
                   6444: else
                   6445:   if test -n "$AWK"; then
                   6446:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6447: else
                   6448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6449: for as_dir in $PATH
                   6450: do
                   6451:   IFS=$as_save_IFS
                   6452:   test -z "$as_dir" && as_dir=.
                   6453:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6454:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6455:     ac_cv_prog_AWK="yes"
                   6456:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6457:     break 2
                   6458:   fi
                   6459: done
                   6460:   done
                   6461: IFS=$as_save_IFS
1.1       bertrand 6462: 
1.15      bertrand 6463:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6464: fi
                   6465: fi
                   6466: AWK=$ac_cv_prog_AWK
                   6467: if test -n "$AWK"; then
                   6468:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6469: $as_echo "$AWK" >&6; }
1.1       bertrand 6470: else
1.15      bertrand 6471:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6472: $as_echo "no" >&6; }
                   6473: fi
                   6474: 
1.1       bertrand 6475: 
1.15      bertrand 6476: if test "$AWK" = no; then
1.39      bertrand 6477:    # Extract the first word of "gawk", so it can be a program name with args.
                   6478: set dummy gawk; ac_word=$2
                   6479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6480: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6481: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6482:   $as_echo_n "(cached) " >&6
                   6483: else
                   6484:   if test -n "$AWK"; then
                   6485:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6486: else
                   6487: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6488: for as_dir in $PATH
                   6489: do
                   6490:   IFS=$as_save_IFS
                   6491:   test -z "$as_dir" && as_dir=.
                   6492:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6493:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6494:     ac_cv_prog_AWK="yes"
                   6495:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6496:     break 2
                   6497:   fi
                   6498: done
                   6499:   done
                   6500: IFS=$as_save_IFS
                   6501: 
                   6502:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6503: fi
                   6504: fi
                   6505: AWK=$ac_cv_prog_AWK
                   6506: if test -n "$AWK"; then
                   6507:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6508: $as_echo "$AWK" >&6; }
                   6509: else
                   6510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6511: $as_echo "no" >&6; }
                   6512: fi
                   6513: 
                   6514: 
                   6515:    if test "$AWK" = no; then
                   6516:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6517:    fi
1.1       bertrand 6518: fi
                   6519: 
1.15      bertrand 6520: # Extract the first word of "sed", so it can be a program name with args.
                   6521: set dummy sed; ac_word=$2
                   6522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6523: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6524: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6525:   $as_echo_n "(cached) " >&6
                   6526: else
                   6527:   if test -n "$SED"; then
                   6528:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6529: else
                   6530: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6531: for as_dir in $PATH
                   6532: do
                   6533:   IFS=$as_save_IFS
                   6534:   test -z "$as_dir" && as_dir=.
                   6535:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6536:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6537:     ac_cv_prog_SED="yes"
                   6538:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6539:     break 2
                   6540:   fi
                   6541: done
1.14      bertrand 6542:   done
1.15      bertrand 6543: IFS=$as_save_IFS
1.1       bertrand 6544: 
1.15      bertrand 6545:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6546: fi
1.15      bertrand 6547: fi
                   6548: SED=$ac_cv_prog_SED
                   6549: if test -n "$SED"; then
                   6550:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6551: $as_echo "$SED" >&6; }
                   6552: else
                   6553:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6554: $as_echo "no" >&6; }
1.14      bertrand 6555: fi
1.1       bertrand 6556: 
                   6557: 
1.15      bertrand 6558: if test "$SED" = no; then
1.36      bertrand 6559:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6560: fi
1.14      bertrand 6561: 
1.15      bertrand 6562: if test "$TEX_SUPPORT" = guessed; then
                   6563:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6564: 
1.15      bertrand 6565:    # Extract the first word of "tex", so it can be a program name with args.
                   6566: set dummy tex; ac_word=$2
                   6567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6568: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6569: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6570:   $as_echo_n "(cached) " >&6
1.1       bertrand 6571: else
1.15      bertrand 6572:   if test -n "$TEX"; then
                   6573:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6574: else
1.15      bertrand 6575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6576: for as_dir in $PATH
                   6577: do
                   6578:   IFS=$as_save_IFS
                   6579:   test -z "$as_dir" && as_dir=.
                   6580:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6581:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6582:     ac_cv_prog_TEX="yes"
                   6583:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6584:     break 2
                   6585:   fi
                   6586: done
                   6587:   done
                   6588: IFS=$as_save_IFS
1.1       bertrand 6589: 
1.15      bertrand 6590:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6591: fi
                   6592: fi
1.15      bertrand 6593: TEX=$ac_cv_prog_TEX
                   6594: if test -n "$TEX"; then
                   6595:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6596: $as_echo "$TEX" >&6; }
                   6597: else
                   6598:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6599: $as_echo "no" >&6; }
1.1       bertrand 6600: fi
1.14      bertrand 6601: 
                   6602: 
1.15      bertrand 6603:    if test "$TEX" = no; then
                   6604:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6605: Download at http://tex.loria.fr/
                   6606: " >&5
                   6607: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6608: Download at http://tex.loria.fr/
                   6609: " >&2;}
                   6610:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6611:    fi
1.14      bertrand 6612: 
1.15      bertrand 6613:    # Extract the first word of "latex", so it can be a program name with args.
                   6614: set dummy latex; ac_word=$2
                   6615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6616: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6617: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6618:   $as_echo_n "(cached) " >&6
1.1       bertrand 6619: else
1.15      bertrand 6620:   if test -n "$LATEX"; then
                   6621:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6622: else
1.15      bertrand 6623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6624: for as_dir in $PATH
                   6625: do
                   6626:   IFS=$as_save_IFS
                   6627:   test -z "$as_dir" && as_dir=.
                   6628:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6629:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6630:     ac_cv_prog_LATEX="yes"
                   6631:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6632:     break 2
                   6633:   fi
                   6634: done
                   6635:   done
                   6636: IFS=$as_save_IFS
1.1       bertrand 6637: 
1.15      bertrand 6638:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6639: fi
                   6640: fi
1.15      bertrand 6641: LATEX=$ac_cv_prog_LATEX
                   6642: if test -n "$LATEX"; then
                   6643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6644: $as_echo "$LATEX" >&6; }
                   6645: else
                   6646:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6647: $as_echo "no" >&6; }
                   6648: fi
1.14      bertrand 6649: 
1.1       bertrand 6650: 
1.15      bertrand 6651:    if test "$LATEX" = no; then
                   6652:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6653: Download at http://tex.loria.fr/
                   6654: " >&5
                   6655: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6656: Download at http://tex.loria.fr/
                   6657: " >&2;}
                   6658:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6659:    fi
1.1       bertrand 6660: 
1.15      bertrand 6661:    # Extract the first word of "dvips", so it can be a program name with args.
                   6662: set dummy dvips; ac_word=$2
                   6663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6664: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6665: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6666:   $as_echo_n "(cached) " >&6
                   6667: else
                   6668:   if test -n "$DVIPS"; then
                   6669:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6670: else
                   6671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6672: for as_dir in $PATH
                   6673: do
                   6674:   IFS=$as_save_IFS
                   6675:   test -z "$as_dir" && as_dir=.
                   6676:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6677:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6678:     ac_cv_prog_DVIPS="yes"
                   6679:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6680:     break 2
                   6681:   fi
                   6682: done
                   6683:   done
                   6684: IFS=$as_save_IFS
1.1       bertrand 6685: 
1.15      bertrand 6686:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6687: fi
1.1       bertrand 6688: fi
1.15      bertrand 6689: DVIPS=$ac_cv_prog_DVIPS
                   6690: if test -n "$DVIPS"; then
                   6691:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6692: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6693: else
1.15      bertrand 6694:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6695: $as_echo "no" >&6; }
                   6696: fi
1.1       bertrand 6697: 
                   6698: 
1.15      bertrand 6699:    if test "$DVIPS" = no; then
                   6700:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6701: Download at http://tex.loria.fr/
                   6702: " >&5
                   6703: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6704: Download at http://tex.loria.fr/
                   6705: " >&2;}
                   6706:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6707:    fi
1.1       bertrand 6708: 
1.15      bertrand 6709:    # Extract the first word of "gs", so it can be a program name with args.
                   6710: set dummy gs; ac_word=$2
                   6711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6712: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6713: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6714:   $as_echo_n "(cached) " >&6
                   6715: else
                   6716:   if test -n "$GS"; then
                   6717:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6718: else
1.15      bertrand 6719: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6720: for as_dir in $PATH
                   6721: do
                   6722:   IFS=$as_save_IFS
                   6723:   test -z "$as_dir" && as_dir=.
                   6724:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6725:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6726:     ac_cv_prog_GS="yes"
                   6727:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6728:     break 2
                   6729:   fi
                   6730: done
                   6731:   done
                   6732: IFS=$as_save_IFS
1.1       bertrand 6733: 
1.15      bertrand 6734:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6735: fi
                   6736: fi
                   6737: GS=$ac_cv_prog_GS
                   6738: if test -n "$GS"; then
                   6739:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6740: $as_echo "$GS" >&6; }
                   6741: else
                   6742:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6743: $as_echo "no" >&6; }
1.1       bertrand 6744: fi
                   6745: 
1.15      bertrand 6746: 
                   6747:    if test "$GS" = no; then
                   6748:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6749: Download at http://ftp.lip6.fr/
                   6750: " >&5
                   6751: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6752: Download at http://ftp.lip6.fr/
                   6753: " >&2;}
                   6754:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6755:    fi
                   6756: 
                   6757:    # Extract the first word of "gv", so it can be a program name with args.
                   6758: set dummy gv; ac_word=$2
                   6759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6760: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6761: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6762:   $as_echo_n "(cached) " >&6
                   6763: else
                   6764:   if test -n "$GV"; then
                   6765:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6766: else
                   6767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6768: for as_dir in $PATH
                   6769: do
                   6770:   IFS=$as_save_IFS
                   6771:   test -z "$as_dir" && as_dir=.
                   6772:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6773:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6774:     ac_cv_prog_GV="yes"
                   6775:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6776:     break 2
                   6777:   fi
                   6778: done
1.14      bertrand 6779:   done
1.15      bertrand 6780: IFS=$as_save_IFS
1.1       bertrand 6781: 
1.15      bertrand 6782:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6783: fi
1.1       bertrand 6784: fi
1.15      bertrand 6785: GV=$ac_cv_prog_GV
                   6786: if test -n "$GV"; then
                   6787:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6788: $as_echo "$GV" >&6; }
                   6789: else
                   6790:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6791: $as_echo "no" >&6; }
1.1       bertrand 6792: fi
1.14      bertrand 6793: 
                   6794: 
1.15      bertrand 6795:    if test "$GV" = no; then
                   6796:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6797: Download at http://ftp.lip6.fr/
                   6798: " >&5
                   6799: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6800: Download at http://ftp.lip6.fr/
                   6801: " >&2;}
                   6802:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6803:    fi
1.1       bertrand 6804: else
1.15      bertrand 6805:    if test "$TEX_SUPPORT" = no; then
                   6806:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6807:    else
                   6808:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6809:    fi
1.1       bertrand 6810: fi
                   6811: 
1.15      bertrand 6812: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6813:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6814: set dummy gnuplot; ac_word=$2
                   6815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6816: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6817: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6818:   $as_echo_n "(cached) " >&6
1.14      bertrand 6819: else
1.15      bertrand 6820:   if test -n "$GNUPLOT_P"; then
                   6821:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6822: else
1.15      bertrand 6823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6824: for as_dir in $PATH
                   6825: do
                   6826:   IFS=$as_save_IFS
                   6827:   test -z "$as_dir" && as_dir=.
                   6828:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6829:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6830:     ac_cv_prog_GNUPLOT_P="yes"
                   6831:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6832:     break 2
                   6833:   fi
                   6834: done
                   6835:   done
                   6836: IFS=$as_save_IFS
1.1       bertrand 6837: 
1.15      bertrand 6838:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6839: fi
                   6840: fi
1.15      bertrand 6841: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6842: if test -n "$GNUPLOT_P"; then
                   6843:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6844: $as_echo "$GNUPLOT_P" >&6; }
                   6845: else
                   6846:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6847: $as_echo "no" >&6; }
1.1       bertrand 6848: fi
                   6849: 
                   6850: 
1.15      bertrand 6851:    if test "$GNUPLOT_P" = no; then
                   6852:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6853: Download at http://www.gnuplot.vt.edu/
                   6854: " >&5
                   6855: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6856: Download at http://www.gnuplot.vt.edu/
                   6857: " >&2;}
                   6858:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6859:    else
                   6860:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6861:    fi
                   6862: else
                   6863:    if test "$GNUPLOT_SUPPORT" = no; then
                   6864:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6865:    else
                   6866:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6867:    fi
                   6868: fi
1.1       bertrand 6869: 
1.15      bertrand 6870: if test "$VIM_SUPPORT" = guessed; then
                   6871:    # Extract the first word of "vim", so it can be a program name with args.
                   6872: set dummy vim; ac_word=$2
                   6873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6874: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6875: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 6876:   $as_echo_n "(cached) " >&6
1.1       bertrand 6877: else
1.15      bertrand 6878:   if test -n "$VIM"; then
                   6879:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6880: else
1.15      bertrand 6881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6882: for as_dir in $PATH
                   6883: do
                   6884:   IFS=$as_save_IFS
                   6885:   test -z "$as_dir" && as_dir=.
                   6886:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6887:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6888:     ac_cv_prog_VIM="yes"
                   6889:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6890:     break 2
                   6891:   fi
                   6892: done
                   6893:   done
                   6894: IFS=$as_save_IFS
1.1       bertrand 6895: 
1.15      bertrand 6896:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6897: fi
                   6898: fi
1.15      bertrand 6899: VIM=$ac_cv_prog_VIM
                   6900: if test -n "$VIM"; then
                   6901:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6902: $as_echo "$VIM" >&6; }
1.1       bertrand 6903: else
1.15      bertrand 6904:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6905: $as_echo "no" >&6; }
                   6906: fi
1.1       bertrand 6907: 
                   6908: 
1.15      bertrand 6909:    if test "$VIM" = no; then
                   6910:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6911: Download at http://www.vim.org/
                   6912: " >&5
                   6913: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6914: Download at http://www.vim.org/
                   6915: " >&2;}
                   6916:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6917:    else
                   6918:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6919:    fi
1.1       bertrand 6920: else
1.15      bertrand 6921:    if test "$VIM_SUPPORT" = no; then
                   6922:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6923:    else
                   6924:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6925:    fi
1.1       bertrand 6926: fi
                   6927: 
1.15      bertrand 6928: if test "$MOTIF_SUPPORT" = guessed; then
                   6929:    CFLAGS_ORIG=$CFLAGS
                   6930:    LIBS_ORIG=$LIBS
                   6931:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6932:    LIBS="$LIB $X_LIBS"
                   6933:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6934: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6935: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6936:   $as_echo_n "(cached) " >&6
1.1       bertrand 6937: else
1.15      bertrand 6938:   ac_check_lib_save_LIBS=$LIBS
                   6939: LIBS="-lXm  $LIBS"
                   6940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6941: /* end confdefs.h.  */
1.1       bertrand 6942: 
                   6943: 
1.14      bertrand 6944: int
                   6945: main ()
                   6946: {
1.15      bertrand 6947: return main ();
1.14      bertrand 6948:   ;
                   6949:   return 0;
                   6950: }
                   6951: _ACEOF
1.15      bertrand 6952: if ac_fn_c_try_link "$LINENO"; then :
                   6953:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6954: else
1.15      bertrand 6955:   ac_cv_lib_Xm_main=no
                   6956: fi
                   6957: rm -f core conftest.err conftest.$ac_objext \
                   6958:     conftest$ac_exeext conftest.$ac_ext
                   6959: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6960: fi
1.15      bertrand 6961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6962: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6963: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6964:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6965: else
1.15      bertrand 6966:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6967: fi
1.14      bertrand 6968: 
1.15      bertrand 6969:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6970:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6971: Motif flag is disabled.
                   6972: " >&5
                   6973: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6974: Motif flag is disabled.
                   6975: " >&2;}
                   6976:    fi
                   6977:    LIBS=$LIBS_ORIG
                   6978:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6979: fi
                   6980: 
1.15      bertrand 6981: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6982:    CFLAGS_ORIG=$CFLAGS
                   6983:    LIBS_ORIG=$LIBS
                   6984:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6985:    LIBS="$LIB $X_LIBS"
                   6986:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6987: $as_echo_n "checking for main in -lXpm... " >&6; }
1.57      bertrand 6988: if ${ac_cv_lib_Xpm_main+:} false; then :
1.15      bertrand 6989:   $as_echo_n "(cached) " >&6
                   6990: else
                   6991:   ac_check_lib_save_LIBS=$LIBS
                   6992: LIBS="-lXpm  $LIBS"
                   6993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6994: /* end confdefs.h.  */
                   6995: 
1.1       bertrand 6996: 
                   6997: int
                   6998: main ()
                   6999: {
1.15      bertrand 7000: return main ();
1.1       bertrand 7001:   ;
                   7002:   return 0;
                   7003: }
                   7004: _ACEOF
1.15      bertrand 7005: if ac_fn_c_try_link "$LINENO"; then :
                   7006:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 7007: else
1.15      bertrand 7008:   ac_cv_lib_Xpm_main=no
                   7009: fi
                   7010: rm -f core conftest.err conftest.$ac_objext \
                   7011:     conftest$ac_exeext conftest.$ac_ext
                   7012: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7013: fi
1.15      bertrand 7014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   7015: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
1.57      bertrand 7016: if test "x$ac_cv_lib_Xpm_main" = xyes; then :
1.15      bertrand 7017:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   7018: else
                   7019:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 7020: fi
1.15      bertrand 7021: 
                   7022:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   7023:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   7024:    else
                   7025:        libX=""
                   7026:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   7027: Motif flag is disabled.
                   7028: " >&5
                   7029: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   7030: Motif flag is disabled.
                   7031: " >&2;}
                   7032:    fi
                   7033:    LIBS=$LIBS_ORIG
                   7034:    CFLAGS=$CFLAGS_ORIG
                   7035: else
                   7036:    libX=""
1.1       bertrand 7037: fi
1.14      bertrand 7038: 
                   7039: 
                   7040: 
1.1       bertrand 7041: 
                   7042: 
1.15      bertrand 7043: 
                   7044: 
                   7045: 
                   7046: 
                   7047: 
                   7048: 
                   7049: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7050: 
                   7051: 
                   7052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7053: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7054: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7055:   $as_echo_n "(cached) " >&6
1.1       bertrand 7056: else
1.15      bertrand 7057:   ac_check_lib_save_LIBS=$LIBS
                   7058: LIBS="-lm  $LIBS"
                   7059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7060: /* end confdefs.h.  */
1.15      bertrand 7061: 
                   7062: 
1.1       bertrand 7063: int
                   7064: main ()
                   7065: {
1.15      bertrand 7066: return main ();
1.1       bertrand 7067:   ;
                   7068:   return 0;
                   7069: }
                   7070: _ACEOF
1.15      bertrand 7071: if ac_fn_c_try_link "$LINENO"; then :
                   7072:   ac_cv_lib_m_main=yes
1.1       bertrand 7073: else
1.15      bertrand 7074:   ac_cv_lib_m_main=no
                   7075: fi
                   7076: rm -f core conftest.err conftest.$ac_objext \
                   7077:     conftest$ac_exeext conftest.$ac_ext
                   7078: LIBS=$ac_check_lib_save_LIBS
                   7079: fi
                   7080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7081: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7082: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7083:   cat >>confdefs.h <<_ACEOF
                   7084: #define HAVE_LIBM 1
                   7085: _ACEOF
1.14      bertrand 7086: 
1.15      bertrand 7087:   LIBS="-lm $LIBS"
1.1       bertrand 7088: 
1.15      bertrand 7089: else
1.36      bertrand 7090:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7091: fi
                   7092: 
1.15      bertrand 7093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   7094: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7095: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7096:   $as_echo_n "(cached) " >&6
1.1       bertrand 7097: else
1.15      bertrand 7098:   ac_check_lib_save_LIBS=$LIBS
                   7099: LIBS="-lpthread  $LIBS"
                   7100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7101: /* end confdefs.h.  */
1.15      bertrand 7102: 
                   7103: 
1.14      bertrand 7104: int
                   7105: main ()
                   7106: {
1.15      bertrand 7107: return main ();
1.14      bertrand 7108:   ;
                   7109:   return 0;
                   7110: }
                   7111: _ACEOF
1.15      bertrand 7112: if ac_fn_c_try_link "$LINENO"; then :
                   7113:   ac_cv_lib_pthread_main=yes
                   7114: else
                   7115:   ac_cv_lib_pthread_main=no
                   7116: fi
                   7117: rm -f core conftest.err conftest.$ac_objext \
                   7118:     conftest$ac_exeext conftest.$ac_ext
                   7119: LIBS=$ac_check_lib_save_LIBS
                   7120: fi
                   7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7122: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7123: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7124:   cat >>confdefs.h <<_ACEOF
                   7125: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7126: _ACEOF
                   7127: 
1.15      bertrand 7128:   LIBS="-lpthread $LIBS"
                   7129: 
1.1       bertrand 7130: else
1.36      bertrand 7131:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7132: fi
1.14      bertrand 7133: 
1.1       bertrand 7134: 
1.33      bertrand 7135: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7136: #include <sys/sem.h>
                   7137: 
                   7138: "
1.57      bertrand 7139: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7140:   SEMUN=-DUNION_SEMUN
                   7141: else
                   7142:   SEMUN=-UUNION_SEMUN
                   7143: fi
                   7144: 
                   7145: 
1.34      bertrand 7146: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7147: #include <sys/types.h>
1.34      bertrand 7148: #include <netinet/in.h>
                   7149: 
                   7150: "
1.57      bertrand 7151: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7152:   IPV6=-DIPV6
                   7153: else
                   7154:   IPV6=-UIPV6
                   7155: fi
                   7156: 
                   7157: 
1.15      bertrand 7158: if test "$CYGWIN" != yes; then
                   7159:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7160: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7161: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7162:   $as_echo_n "(cached) " >&6
1.1       bertrand 7163: else
1.15      bertrand 7164:   ac_check_lib_save_LIBS=$LIBS
                   7165: LIBS="-ldl  $LIBS"
                   7166: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7167: /* end confdefs.h.  */
                   7168: 
1.15      bertrand 7169: /* Override any GCC internal prototype to avoid an error.
                   7170:    Use char because int might match the return type of a GCC
                   7171:    builtin and then its argument prototype would still apply.  */
                   7172: #ifdef __cplusplus
                   7173: extern "C"
                   7174: #endif
                   7175: char dlopen ();
1.1       bertrand 7176: int
                   7177: main ()
                   7178: {
1.15      bertrand 7179: return dlopen ();
1.1       bertrand 7180:   ;
                   7181:   return 0;
                   7182: }
                   7183: _ACEOF
1.15      bertrand 7184: if ac_fn_c_try_link "$LINENO"; then :
                   7185:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7186: else
1.15      bertrand 7187:   ac_cv_lib_dl_dlopen=no
                   7188: fi
                   7189: rm -f core conftest.err conftest.$ac_objext \
                   7190:     conftest$ac_exeext conftest.$ac_ext
                   7191: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7192: fi
1.15      bertrand 7193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7194: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7195: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7196:   LIBS="$LIBS -ldl"
1.14      bertrand 7197: else
1.15      bertrand 7198:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7199: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7200: fi
                   7201: 
1.14      bertrand 7202: fi
1.1       bertrand 7203: 
1.15      bertrand 7204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7205: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7206: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7207:   $as_echo_n "(cached) " >&6
                   7208: else
                   7209:   ac_check_lib_save_LIBS=$LIBS
                   7210: LIBS="-lrt  $LIBS"
                   7211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7212: /* end confdefs.h.  */
1.15      bertrand 7213: 
                   7214: /* Override any GCC internal prototype to avoid an error.
                   7215:    Use char because int might match the return type of a GCC
                   7216:    builtin and then its argument prototype would still apply.  */
                   7217: #ifdef __cplusplus
                   7218: extern "C"
                   7219: #endif
                   7220: char nanosleep ();
1.1       bertrand 7221: int
                   7222: main ()
                   7223: {
1.15      bertrand 7224: return nanosleep ();
1.1       bertrand 7225:   ;
                   7226:   return 0;
                   7227: }
                   7228: _ACEOF
1.15      bertrand 7229: if ac_fn_c_try_link "$LINENO"; then :
                   7230:   ac_cv_lib_rt_nanosleep=yes
                   7231: else
                   7232:   ac_cv_lib_rt_nanosleep=no
                   7233: fi
                   7234: rm -f core conftest.err conftest.$ac_objext \
                   7235:     conftest$ac_exeext conftest.$ac_ext
                   7236: LIBS=$ac_check_lib_save_LIBS
                   7237: fi
                   7238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7239: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7240: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7241:   LIBS="$LIBS -lrt"
1.1       bertrand 7242: else
1.15      bertrand 7243:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7244: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7245: fi
1.1       bertrand 7246: 
                   7247: 
1.15      bertrand 7248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7249: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7250: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7251:   $as_echo_n "(cached) " >&6
1.1       bertrand 7252: else
1.15      bertrand 7253:   ac_check_lib_save_LIBS=$LIBS
                   7254: LIBS="-lsocket  $LIBS"
                   7255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7256: /* end confdefs.h.  */
1.15      bertrand 7257: 
                   7258: /* Override any GCC internal prototype to avoid an error.
                   7259:    Use char because int might match the return type of a GCC
                   7260:    builtin and then its argument prototype would still apply.  */
                   7261: #ifdef __cplusplus
                   7262: extern "C"
                   7263: #endif
                   7264: char bind ();
1.1       bertrand 7265: int
                   7266: main ()
                   7267: {
1.15      bertrand 7268: return bind ();
1.1       bertrand 7269:   ;
                   7270:   return 0;
                   7271: }
                   7272: _ACEOF
1.15      bertrand 7273: if ac_fn_c_try_link "$LINENO"; then :
                   7274:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7275: else
1.15      bertrand 7276:   ac_cv_lib_socket_bind=no
1.1       bertrand 7277: fi
1.15      bertrand 7278: rm -f core conftest.err conftest.$ac_objext \
                   7279:     conftest$ac_exeext conftest.$ac_ext
                   7280: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7281: fi
1.15      bertrand 7282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7283: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7284: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7285:   LIBS="$LIBS -lsocket"
                   7286: else
                   7287:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7288: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7289: fi
                   7290: 
                   7291: 
1.15      bertrand 7292: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7293: 
                   7294: # Check whether --with-mysql was given.
                   7295: if test "${with_mysql+set}" = set; then :
                   7296:   withval=$with_mysql;
                   7297: else
                   7298:   with_mysql=check
                   7299: fi
1.14      bertrand 7300: 
                   7301: 
1.15      bertrand 7302: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7303:    libMySQLinc="-I/usr/include"
1.30      bertrand 7304:    libMySQLlib="/usr/lib"
1.14      bertrand 7305: 
1.15      bertrand 7306:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7307: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7308:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7309:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7310:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7311: /* end confdefs.h.  */
1.15      bertrand 7312: #include "mysql.h"
1.1       bertrand 7313: int
                   7314: main ()
                   7315: {
1.15      bertrand 7316: 
1.1       bertrand 7317:   ;
                   7318:   return 0;
                   7319: }
                   7320: _ACEOF
1.15      bertrand 7321: if ac_fn_c_try_compile "$LINENO"; then :
                   7322:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7323: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7324:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7325: else
1.15      bertrand 7326:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7327: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7328: fi
1.14      bertrand 7329: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7330:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7331: 
1.15      bertrand 7332:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7333:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7334: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7335:        saved_CFLAGS="$CFLAGS"
                   7336:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7337:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7338: /* end confdefs.h.  */
1.15      bertrand 7339: #include "mysql.h"
1.1       bertrand 7340: int
                   7341: main ()
                   7342: {
                   7343: 
                   7344:   ;
                   7345:   return 0;
                   7346: }
                   7347: _ACEOF
1.15      bertrand 7348: if ac_fn_c_try_compile "$LINENO"; then :
                   7349:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7350: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7351:                        libMySQLinc=$libMySQLinc
                   7352: else
                   7353:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7354: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7355: fi
                   7356: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7357:        CFLAGS=$saved_CFLAGS
                   7358:        libMySQLinc=$libMySQLinc/mysql
                   7359:    fi
                   7360: 
                   7361:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7362:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7363: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7364:        saved_CFLAGS="$CFLAGS"
                   7365:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7366:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7367: /* end confdefs.h.  */
1.15      bertrand 7368: #include "mysql.h"
1.1       bertrand 7369: int
                   7370: main ()
                   7371: {
                   7372: 
                   7373:   ;
                   7374:   return 0;
                   7375: }
                   7376: _ACEOF
1.15      bertrand 7377: if ac_fn_c_try_compile "$LINENO"; then :
                   7378:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7379: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7380:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7381: else
1.15      bertrand 7382:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7383: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7384: fi
                   7385: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7386:        CFLAGS=$saved_CFLAGS
                   7387:        libMySQLinc=$libMySQLinc/../local/include
                   7388:        libMySQLlib=$libMySQLlib/../local/lib
                   7389:    fi
1.1       bertrand 7390: 
1.15      bertrand 7391:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7392:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7393: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7394:        saved_CFLAGS="$CFLAGS"
                   7395:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7396:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7397: /* end confdefs.h.  */
1.15      bertrand 7398: #include "mysql.h"
1.1       bertrand 7399: int
                   7400: main ()
                   7401: {
                   7402: 
                   7403:   ;
                   7404:   return 0;
                   7405: }
                   7406: _ACEOF
1.15      bertrand 7407: if ac_fn_c_try_compile "$LINENO"; then :
                   7408:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7409: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7410:                        libMySQLinc=$libMySQLinc/mysql
                   7411: else
                   7412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7413: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7414: fi
                   7415: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7416:        CFLAGS=$saved_CFLAGS
                   7417:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7418:        libMySQLlib=$libMySQLlib/../local/lib
                   7419:    fi
                   7420: else
                   7421:    if test "x$with_mysql" != xno; then
                   7422:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7423:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7424: 
                   7425:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7426: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7427:        saved_CFLAGS="$CFLAGS"
                   7428:        CFLAGS="$CFLAGS $libMySQLinc"
                   7429:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7430: /* end confdefs.h.  */
1.15      bertrand 7431: #include "mysql.h"
1.1       bertrand 7432: int
                   7433: main ()
                   7434: {
                   7435: 
                   7436:   ;
                   7437:   return 0;
                   7438: }
                   7439: _ACEOF
1.15      bertrand 7440: if ac_fn_c_try_compile "$LINENO"; then :
                   7441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7442: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7443:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7444: else
1.15      bertrand 7445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7446: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7447: fi
                   7448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7449:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7450: 
1.15      bertrand 7451:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7452:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7453: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7454:            saved_CFLAGS="$CFLAGS"
                   7455:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7456:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7457: /* end confdefs.h.  */
1.15      bertrand 7458: #include "mysql.h"
1.1       bertrand 7459: int
                   7460: main ()
                   7461: {
                   7462: 
                   7463:   ;
                   7464:   return 0;
                   7465: }
                   7466: _ACEOF
1.15      bertrand 7467: if ac_fn_c_try_compile "$LINENO"; then :
                   7468:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7469: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7470:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7471: else
1.15      bertrand 7472:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7473: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7474: fi
                   7475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7476:            CFLAGS=$saved_CFLAGS
                   7477:            libMySQLinc=$libMySQLinc/mysql
                   7478:        fi
                   7479:    else
                   7480:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7481:    fi
                   7482: fi
1.14      bertrand 7483: 
1.15      bertrand 7484: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7485:    MYSQL_LIB=no
1.14      bertrand 7486: 
1.15      bertrand 7487:    if test $MYSQL_LIB = no; then
                   7488:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7489: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7490:        saved_LIBS="$LIBS"
1.30      bertrand 7491:        if test $STATIC = no; then
                   7492:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7493:        else
                   7494:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7495:        fi
1.15      bertrand 7496:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7497: /* end confdefs.h.  */
1.15      bertrand 7498: #include "mysql.h"
1.1       bertrand 7499: int
                   7500: main ()
                   7501: {
1.15      bertrand 7502: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7503:   ;
                   7504:   return 0;
                   7505: }
                   7506: _ACEOF
1.15      bertrand 7507: if ac_fn_c_try_link "$LINENO"; then :
                   7508:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7509: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7510: else
1.15      bertrand 7511:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7512: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7513: fi
                   7514: rm -f core conftest.err conftest.$ac_objext \
                   7515:     conftest$ac_exeext conftest.$ac_ext
                   7516:        LIBS=$saved_LIBS;
1.30      bertrand 7517:        if test $STATIC = no; then
                   7518:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7519:        else
                   7520:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7521:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7522:        fi
1.15      bertrand 7523:    fi
1.14      bertrand 7524: 
1.15      bertrand 7525:    if test $MYSQL_LIB = no; then
                   7526:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7527:    fi
1.14      bertrand 7528: fi
1.15      bertrand 7529: 
                   7530: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7531:    libMySQLinc=
                   7532:    libMySQLlib=
1.1       bertrand 7533: fi
1.14      bertrand 7534: 
                   7535: 
                   7536: 
1.1       bertrand 7537: 
                   7538: 
1.15      bertrand 7539: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7540: 
                   7541: # Check whether --with-postgresql was given.
                   7542: if test "${with_postgresql+set}" = set; then :
                   7543:   withval=$with_postgresql;
1.14      bertrand 7544: else
1.15      bertrand 7545:   with_postgresql=check
                   7546: fi
                   7547: 
                   7548: 
                   7549: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7550: # no [--without], valeur [--with=valeur].
                   7551: 
                   7552: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7553:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7554:    libPgSQLlib="/usr/lib"
1.15      bertrand 7555: 
                   7556:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7557: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7558:    saved_CFLAGS="$CFLAGS"
                   7559:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7560:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7561: /* end confdefs.h.  */
1.15      bertrand 7562: #include "libpq-fe.h"
1.1       bertrand 7563: int
                   7564: main ()
                   7565: {
1.15      bertrand 7566: 
1.1       bertrand 7567:   ;
                   7568:   return 0;
                   7569: }
                   7570: _ACEOF
1.15      bertrand 7571: if ac_fn_c_try_compile "$LINENO"; then :
                   7572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7573: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7574: else
1.15      bertrand 7575:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7576: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7577: fi
1.14      bertrand 7578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7579:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7580: 
1.15      bertrand 7581:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7582:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7583: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7584:        saved_CFLAGS="$CFLAGS"
                   7585:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7586:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7587: /* end confdefs.h.  */
1.15      bertrand 7588: #include "libpq-fe.h"
1.1       bertrand 7589: int
                   7590: main ()
                   7591: {
                   7592: 
                   7593:   ;
                   7594:   return 0;
                   7595: }
                   7596: _ACEOF
1.15      bertrand 7597: if ac_fn_c_try_compile "$LINENO"; then :
                   7598:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7599: $as_echo "yes" >&6; };
                   7600:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7601: else
                   7602:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7603: $as_echo "no" >&6; };
                   7604:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7605: fi
                   7606: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7607:        CFLAGS=$saved_CFLAGS
                   7608:        libPgSQLinc=$libPgSQLinc/postgresql
                   7609:    fi
                   7610: 
                   7611:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7612:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7613: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7614:        saved_CFLAGS="$CFLAGS"
                   7615:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7616:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7617: /* end confdefs.h.  */
1.15      bertrand 7618: #include "libpq-fe.h"
1.1       bertrand 7619: int
                   7620: main ()
                   7621: {
                   7622: 
                   7623:   ;
                   7624:   return 0;
                   7625: }
                   7626: _ACEOF
1.15      bertrand 7627: if ac_fn_c_try_compile "$LINENO"; then :
                   7628:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7629: $as_echo "yes" >&6; };
                   7630:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7631: else
1.15      bertrand 7632:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7633: $as_echo "no" >&6; };
                   7634:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7635: fi
                   7636: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7637:        CFLAGS=$saved_CFLAGS
                   7638:        libPgSQLinc=$libPgSQLinc/pgsql
                   7639:    fi
1.1       bertrand 7640: 
1.15      bertrand 7641:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7642:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7643: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7644:        saved_CFLAGS="$CFLAGS"
                   7645:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7646:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7647: /* end confdefs.h.  */
1.15      bertrand 7648: #include "libpq-fe.h"
1.1       bertrand 7649: int
                   7650: main ()
                   7651: {
                   7652: 
                   7653:   ;
                   7654:   return 0;
                   7655: }
                   7656: _ACEOF
1.15      bertrand 7657: if ac_fn_c_try_compile "$LINENO"; then :
                   7658:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7659: $as_echo "yes" >&6; };
                   7660:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7661: else
                   7662:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7663: $as_echo "no" >&6; };
                   7664:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7665: fi
                   7666: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7667:        CFLAGS=$saved_CFLAGS
                   7668:        libPgSQLinc=$libPgSQLinc/../local/include
                   7669:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7670:    fi
                   7671: 
                   7672:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7673:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7674: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7675:        saved_CFLAGS="$CFLAGS"
                   7676:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7677:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7678: /* end confdefs.h.  */
1.15      bertrand 7679: #include "libpq-fe.h"
1.1       bertrand 7680: int
                   7681: main ()
                   7682: {
                   7683: 
                   7684:   ;
                   7685:   return 0;
                   7686: }
                   7687: _ACEOF
1.15      bertrand 7688: if ac_fn_c_try_compile "$LINENO"; then :
                   7689:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7690: $as_echo "yes" >&6; };
                   7691:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7692: else
1.15      bertrand 7693:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7694: $as_echo "no" >&6; };
                   7695:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7696: fi
                   7697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7698:        CFLAGS=$saved_CFLAGS
                   7699:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7700:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7701:    fi
1.14      bertrand 7702: 
1.15      bertrand 7703:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7704:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7705: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7706:        saved_CFLAGS="$CFLAGS"
                   7707:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7708:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7709: /* end confdefs.h.  */
1.15      bertrand 7710: #include "libpq-fe.h"
1.1       bertrand 7711: int
                   7712: main ()
                   7713: {
                   7714: 
                   7715:   ;
                   7716:   return 0;
                   7717: }
                   7718: _ACEOF
1.15      bertrand 7719: if ac_fn_c_try_compile "$LINENO"; then :
                   7720:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7721: $as_echo "yes" >&6; };
                   7722:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7723: else
1.15      bertrand 7724:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7725: $as_echo "no" >&6; };
                   7726:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7727: fi
                   7728: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7729:        CFLAGS=$saved_CFLAGS
                   7730:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7731:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7732:    fi
1.14      bertrand 7733: else
1.15      bertrand 7734:    if test "x$with_postgresql" != xno; then
                   7735:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7736:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7737: 
                   7738:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7739: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7740:        saved_CFLAGS="$CFLAGS"
                   7741:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7742:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7743: /* end confdefs.h.  */
1.15      bertrand 7744: #include "libpq-fe.h"
1.1       bertrand 7745: int
                   7746: main ()
                   7747: {
                   7748: 
                   7749:   ;
                   7750:   return 0;
                   7751: }
                   7752: _ACEOF
1.15      bertrand 7753: if ac_fn_c_try_compile "$LINENO"; then :
                   7754:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7755: $as_echo "yes" >&6; };
                   7756:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7757: else
1.15      bertrand 7758:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7759: $as_echo "no" >&6; };
                   7760:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7761: fi
1.15      bertrand 7762: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7763:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7764: 
1.15      bertrand 7765:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7766:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7767: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7768:            saved_CFLAGS="$CFLAGS"
                   7769:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7770:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7771: /* end confdefs.h.  */
1.15      bertrand 7772: #include "libpq-fe.h"
1.1       bertrand 7773: int
                   7774: main ()
                   7775: {
1.15      bertrand 7776: 
1.1       bertrand 7777:   ;
                   7778:   return 0;
                   7779: }
                   7780: _ACEOF
1.15      bertrand 7781: if ac_fn_c_try_compile "$LINENO"; then :
                   7782:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7783: $as_echo "yes" >&6; };
                   7784:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7785: else
1.15      bertrand 7786:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7787: $as_echo "no" >&6; };
                   7788:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7789: fi
                   7790: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7791:            CFLAGS=$saved_CFLAGS
                   7792:            libPgSQLinc=$libPgSQLinc/postgresql
                   7793:        fi
1.14      bertrand 7794: 
1.15      bertrand 7795:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7796:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7797: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7798:            saved_CFLAGS="$CFLAGS"
                   7799:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7800:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7801: /* end confdefs.h.  */
1.15      bertrand 7802: #include "libpq-fe.h"
1.1       bertrand 7803: int
                   7804: main ()
                   7805: {
1.15      bertrand 7806: 
1.1       bertrand 7807:   ;
                   7808:   return 0;
                   7809: }
                   7810: _ACEOF
1.15      bertrand 7811: if ac_fn_c_try_compile "$LINENO"; then :
                   7812:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7813: $as_echo "yes" >&6; };
                   7814:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7815: else
1.15      bertrand 7816:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7817: $as_echo "no" >&6; };
                   7818:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7819: fi
1.15      bertrand 7820: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7821:            CFLAGS=$saved_CFLAGS
                   7822:            libPgSQLinc=$libPgSQLinc/pgsql
                   7823:        fi
                   7824:    else
                   7825:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7826:    fi
1.1       bertrand 7827: fi
                   7828: 
1.15      bertrand 7829: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7830:    POSTGRESQL_LIB=no
1.1       bertrand 7831: 
1.15      bertrand 7832:    if test $POSTGRESQL_LIB = no; then
                   7833:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7834: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7835:        saved_LIBS="$LIBS"
1.30      bertrand 7836:        if test $STATIC = no; then
                   7837:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7838:        else
                   7839:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7840:        fi
1.15      bertrand 7841:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7842: /* end confdefs.h.  */
1.15      bertrand 7843: #include "libpq-fe.h"
1.1       bertrand 7844: int
                   7845: main ()
                   7846: {
1.15      bertrand 7847: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7848:             PQconnectdb(conninfo);
1.1       bertrand 7849:   ;
                   7850:   return 0;
                   7851: }
                   7852: _ACEOF
1.15      bertrand 7853: if ac_fn_c_try_link "$LINENO"; then :
                   7854:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7855: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7856: else
1.15      bertrand 7857:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7858: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7859: fi
                   7860: rm -f core conftest.err conftest.$ac_objext \
                   7861:     conftest$ac_exeext conftest.$ac_ext
                   7862:        LIBS=$saved_LIBS;
1.30      bertrand 7863:        if test $STATIC = no; then
                   7864:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7865:        else
                   7866:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7867:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7868:        fi
1.15      bertrand 7869:    fi
                   7870: fi
                   7871: 
                   7872: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7873:    libPgSQLinc=
                   7874:    libPgSQLlib=
                   7875: fi
                   7876: 
                   7877: 
                   7878: 
                   7879: 
1.14      bertrand 7880: 
1.40      bertrand 7881: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7882: # no [--without], valeur [--with=valeur].
                   7883: 
                   7884: # Check whether --with-bourne_shell was given.
                   7885: if test "${with_bourne_shell+set}" = set; then :
                   7886:   withval=$with_bourne_shell;
                   7887: else
                   7888:   with_bourne_shell=no
                   7889: fi
                   7890: 
                   7891: 
                   7892: if test "x$with_bourne_shell" = xyes; then
                   7893:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7894: fi
                   7895: 
                   7896: if test "x$with_bourne_shell" = xno; then
                   7897:    if test $(uname) = "OS/2"; then
                   7898:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7899:    fi
                   7900: 
                   7901:    BSH_PATH=
                   7902: else
                   7903:    if test ! -x $with_bourne_shell; then
                   7904:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7905:    fi
                   7906: 
                   7907:    if test $(uname) = "OS/2"; then
1.41      bertrand 7908:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7909:                sed -e '1,$s/\//\\\\\\\\/g')
                   7910:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7911:    else
                   7912:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7913: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7914:        BSH_PATH=
                   7915:    fi
                   7916: fi
                   7917: 
1.15      bertrand 7918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7919: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7920: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7921:   $as_echo_n "(cached) " >&6
                   7922: else
                   7923:   if test -z "$GREP"; then
                   7924:   ac_path_GREP_found=false
                   7925:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7926:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7927: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7928: do
                   7929:   IFS=$as_save_IFS
                   7930:   test -z "$as_dir" && as_dir=.
                   7931:     for ac_prog in grep ggrep; do
                   7932:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7933:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7934:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7935: # Check for GNU ac_path_GREP and select it if it is found.
                   7936:   # Check for GNU $ac_path_GREP
                   7937: case `"$ac_path_GREP" --version 2>&1` in
                   7938: *GNU*)
                   7939:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7940: *)
                   7941:   ac_count=0
                   7942:   $as_echo_n 0123456789 >"conftest.in"
                   7943:   while :
                   7944:   do
                   7945:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7946:     mv "conftest.tmp" "conftest.in"
                   7947:     cp "conftest.in" "conftest.nl"
                   7948:     $as_echo 'GREP' >> "conftest.nl"
                   7949:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7950:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7951:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7952:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7953:       # Best one so far, save it but keep looking for a better one
                   7954:       ac_cv_path_GREP="$ac_path_GREP"
                   7955:       ac_path_GREP_max=$ac_count
                   7956:     fi
                   7957:     # 10*(2^10) chars as input seems more than enough
                   7958:     test $ac_count -gt 10 && break
                   7959:   done
                   7960:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7961: esac
1.14      bertrand 7962: 
1.15      bertrand 7963:       $ac_path_GREP_found && break 3
                   7964:     done
                   7965:   done
                   7966:   done
                   7967: IFS=$as_save_IFS
                   7968:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7969:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7970:   fi
                   7971: else
                   7972:   ac_cv_path_GREP=$GREP
1.1       bertrand 7973: fi
                   7974: 
                   7975: fi
1.15      bertrand 7976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7977: $as_echo "$ac_cv_path_GREP" >&6; }
                   7978:  GREP="$ac_cv_path_GREP"
                   7979: 
                   7980: 
                   7981: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7982: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 7983: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 7984:   $as_echo_n "(cached) " >&6
                   7985: else
                   7986:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7987:    then ac_cv_path_EGREP="$GREP -E"
                   7988:    else
                   7989:      if test -z "$EGREP"; then
                   7990:   ac_path_EGREP_found=false
                   7991:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7992:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7993: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7994: do
                   7995:   IFS=$as_save_IFS
                   7996:   test -z "$as_dir" && as_dir=.
                   7997:     for ac_prog in egrep; do
                   7998:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7999:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8000:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8001: # Check for GNU ac_path_EGREP and select it if it is found.
                   8002:   # Check for GNU $ac_path_EGREP
                   8003: case `"$ac_path_EGREP" --version 2>&1` in
                   8004: *GNU*)
                   8005:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8006: *)
                   8007:   ac_count=0
                   8008:   $as_echo_n 0123456789 >"conftest.in"
                   8009:   while :
                   8010:   do
                   8011:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8012:     mv "conftest.tmp" "conftest.in"
                   8013:     cp "conftest.in" "conftest.nl"
                   8014:     $as_echo 'EGREP' >> "conftest.nl"
                   8015:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8016:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8017:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8018:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8019:       # Best one so far, save it but keep looking for a better one
                   8020:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8021:       ac_path_EGREP_max=$ac_count
                   8022:     fi
                   8023:     # 10*(2^10) chars as input seems more than enough
                   8024:     test $ac_count -gt 10 && break
                   8025:   done
                   8026:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8027: esac
                   8028: 
                   8029:       $ac_path_EGREP_found && break 3
                   8030:     done
                   8031:   done
                   8032:   done
                   8033: IFS=$as_save_IFS
                   8034:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8035:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8036:   fi
1.1       bertrand 8037: else
1.15      bertrand 8038:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8039: fi
                   8040: 
1.15      bertrand 8041:    fi
1.1       bertrand 8042: fi
1.15      bertrand 8043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8044: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8045:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8046: 
                   8047: 
1.15      bertrand 8048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8049: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8050: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8051:   $as_echo_n "(cached) " >&6
1.1       bertrand 8052: else
1.15      bertrand 8053:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8054: /* end confdefs.h.  */
                   8055: #include <stdlib.h>
                   8056: #include <stdarg.h>
                   8057: #include <string.h>
                   8058: #include <float.h>
                   8059: 
                   8060: int
                   8061: main ()
                   8062: {
                   8063: 
                   8064:   ;
                   8065:   return 0;
                   8066: }
                   8067: _ACEOF
1.15      bertrand 8068: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8069:   ac_cv_header_stdc=yes
                   8070: else
1.15      bertrand 8071:   ac_cv_header_stdc=no
1.1       bertrand 8072: fi
                   8073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8074: 
                   8075: if test $ac_cv_header_stdc = yes; then
                   8076:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8077:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8078: /* end confdefs.h.  */
                   8079: #include <string.h>
                   8080: 
                   8081: _ACEOF
                   8082: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8083:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8084: 
1.1       bertrand 8085: else
                   8086:   ac_cv_header_stdc=no
                   8087: fi
                   8088: rm -f conftest*
                   8089: 
                   8090: fi
                   8091: 
                   8092: if test $ac_cv_header_stdc = yes; then
                   8093:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8094:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8095: /* end confdefs.h.  */
                   8096: #include <stdlib.h>
                   8097: 
                   8098: _ACEOF
                   8099: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8100:   $EGREP "free" >/dev/null 2>&1; then :
                   8101: 
1.1       bertrand 8102: else
                   8103:   ac_cv_header_stdc=no
                   8104: fi
                   8105: rm -f conftest*
                   8106: 
                   8107: fi
                   8108: 
                   8109: if test $ac_cv_header_stdc = yes; then
                   8110:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8111:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8112:   :
                   8113: else
1.15      bertrand 8114:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8115: /* end confdefs.h.  */
                   8116: #include <ctype.h>
                   8117: #include <stdlib.h>
                   8118: #if ((' ' & 0x0FF) == 0x020)
                   8119: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8120: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8121: #else
                   8122: # define ISLOWER(c) \
                   8123:           (('a' <= (c) && (c) <= 'i') \
                   8124:             || ('j' <= (c) && (c) <= 'r') \
                   8125:             || ('s' <= (c) && (c) <= 'z'))
                   8126: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8127: #endif
                   8128: 
                   8129: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8130: int
                   8131: main ()
                   8132: {
                   8133:   int i;
                   8134:   for (i = 0; i < 256; i++)
                   8135:     if (XOR (islower (i), ISLOWER (i))
                   8136:    || toupper (i) != TOUPPER (i))
                   8137:       return 2;
                   8138:   return 0;
                   8139: }
                   8140: _ACEOF
1.15      bertrand 8141: if ac_fn_c_try_run "$LINENO"; then :
                   8142: 
1.14      bertrand 8143: else
1.15      bertrand 8144:   ac_cv_header_stdc=no
                   8145: fi
                   8146: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8147:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8148: fi
1.1       bertrand 8149: 
                   8150: fi
                   8151: fi
1.15      bertrand 8152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8153: $as_echo "$ac_cv_header_stdc" >&6; }
                   8154: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8155: 
1.15      bertrand 8156: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8157: 
1.1       bertrand 8158: fi
                   8159: 
1.15      bertrand 8160: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8161: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8162:          inttypes.h stdint.h unistd.h
                   8163: do :
                   8164:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8165: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8166: "
1.36      bertrand 8167: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8168:   cat >>confdefs.h <<_ACEOF
                   8169: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8170: _ACEOF
1.1       bertrand 8171: 
                   8172: fi
                   8173: 
1.15      bertrand 8174: done
                   8175: 
                   8176: 
                   8177: # The cast to long int works around a bug in the HP C Compiler
                   8178: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8179: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8180: # This bug is HP SR number 8606223364.
                   8181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8182: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8183: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8184:   $as_echo_n "(cached) " >&6
                   8185: else
                   8186:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8187: 
                   8188: else
1.15      bertrand 8189:   if test "$ac_cv_type_void_p" = yes; then
                   8190:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8191: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8192: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8193: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8194:    else
                   8195:      ac_cv_sizeof_void_p=0
                   8196:    fi
                   8197: fi
1.1       bertrand 8198: 
                   8199: fi
1.15      bertrand 8200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8201: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8202: 
1.1       bertrand 8203: 
                   8204: 
1.15      bertrand 8205: cat >>confdefs.h <<_ACEOF
                   8206: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8207: _ACEOF
1.1       bertrand 8208: 
1.15      bertrand 8209: 
                   8210: # The cast to long int works around a bug in the HP C Compiler
                   8211: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8212: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8213: # This bug is HP SR number 8606223364.
                   8214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8215: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8216: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8217:   $as_echo_n "(cached) " >&6
                   8218: else
                   8219:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8220: 
                   8221: else
                   8222:   if test "$ac_cv_type_char" = yes; then
                   8223:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8224: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8225: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8226: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8227:    else
                   8228:      ac_cv_sizeof_char=0
                   8229:    fi
                   8230: fi
                   8231: 
1.1       bertrand 8232: fi
1.15      bertrand 8233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8234: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8235: 
                   8236: 
                   8237: 
1.15      bertrand 8238: cat >>confdefs.h <<_ACEOF
                   8239: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8240: _ACEOF
1.1       bertrand 8241: 
                   8242: 
1.15      bertrand 8243: # The cast to long int works around a bug in the HP C Compiler
                   8244: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8245: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8246: # This bug is HP SR number 8606223364.
                   8247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8248: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8249: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8250:   $as_echo_n "(cached) " >&6
                   8251: else
                   8252:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8253: 
1.15      bertrand 8254: else
                   8255:   if test "$ac_cv_type_short_int" = yes; then
                   8256:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8257: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8258: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8259: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8260:    else
                   8261:      ac_cv_sizeof_short_int=0
                   8262:    fi
                   8263: fi
1.1       bertrand 8264: 
1.15      bertrand 8265: fi
                   8266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8267: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8268: 
                   8269: 
                   8270: 
1.15      bertrand 8271: cat >>confdefs.h <<_ACEOF
                   8272: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8273: _ACEOF
1.1       bertrand 8274: 
                   8275: 
1.15      bertrand 8276: # The cast to long int works around a bug in the HP C Compiler
                   8277: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8278: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8279: # This bug is HP SR number 8606223364.
                   8280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8281: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8282: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8283:   $as_echo_n "(cached) " >&6
                   8284: else
                   8285:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8286: 
1.15      bertrand 8287: else
                   8288:   if test "$ac_cv_type_int" = yes; then
                   8289:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8290: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8291: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8292: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8293:    else
                   8294:      ac_cv_sizeof_int=0
                   8295:    fi
                   8296: fi
1.1       bertrand 8297: 
1.15      bertrand 8298: fi
                   8299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8300: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8301: 
                   8302: 
                   8303: 
1.15      bertrand 8304: cat >>confdefs.h <<_ACEOF
                   8305: #define SIZEOF_INT $ac_cv_sizeof_int
                   8306: _ACEOF
1.1       bertrand 8307: 
                   8308: 
1.15      bertrand 8309: # The cast to long int works around a bug in the HP C Compiler
                   8310: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8311: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8312: # This bug is HP SR number 8606223364.
                   8313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8314: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8315: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8316:   $as_echo_n "(cached) " >&6
                   8317: else
                   8318:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8319: 
1.14      bertrand 8320: else
1.15      bertrand 8321:   if test "$ac_cv_type_long_int" = yes; then
                   8322:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8323: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8324: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8325: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8326:    else
                   8327:      ac_cv_sizeof_long_int=0
                   8328:    fi
                   8329: fi
1.1       bertrand 8330: 
                   8331: fi
1.15      bertrand 8332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8333: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8334: 
1.1       bertrand 8335: 
                   8336: 
1.15      bertrand 8337: cat >>confdefs.h <<_ACEOF
                   8338: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8339: _ACEOF
1.15      bertrand 8340: 
                   8341: 
                   8342: # The cast to long int works around a bug in the HP C Compiler
                   8343: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8344: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8345: # This bug is HP SR number 8606223364.
                   8346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8347: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8348: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8349:   $as_echo_n "(cached) " >&6
                   8350: else
                   8351:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8352: 
1.14      bertrand 8353: else
1.15      bertrand 8354:   if test "$ac_cv_type_long_long_int" = yes; then
                   8355:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8356: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8357: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8358: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8359:    else
                   8360:      ac_cv_sizeof_long_long_int=0
                   8361:    fi
                   8362: fi
1.1       bertrand 8363: 
1.14      bertrand 8364: fi
1.15      bertrand 8365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8366: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8367: 
                   8368: 
                   8369: 
                   8370: cat >>confdefs.h <<_ACEOF
                   8371: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8372: _ACEOF
1.1       bertrand 8373: 
                   8374: 
1.15      bertrand 8375: # The cast to long int works around a bug in the HP C Compiler
                   8376: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8377: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8378: # This bug is HP SR number 8606223364.
                   8379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8380: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8381: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8382:   $as_echo_n "(cached) " >&6
                   8383: else
                   8384:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8385: 
                   8386: else
1.15      bertrand 8387:   if test "$ac_cv_type_float" = yes; then
                   8388:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8389: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8390: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8391: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8392:    else
                   8393:      ac_cv_sizeof_float=0
                   8394:    fi
1.14      bertrand 8395: fi
                   8396: 
1.1       bertrand 8397: fi
1.15      bertrand 8398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8399: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8400: 
                   8401: 
                   8402: 
                   8403: cat >>confdefs.h <<_ACEOF
                   8404: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8405: _ACEOF
1.1       bertrand 8406: 
                   8407: 
1.15      bertrand 8408: # The cast to long int works around a bug in the HP C Compiler
                   8409: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8410: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8411: # This bug is HP SR number 8606223364.
                   8412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8413: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8414: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8415:   $as_echo_n "(cached) " >&6
                   8416: else
                   8417:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8418: 
1.15      bertrand 8419: else
                   8420:   if test "$ac_cv_type_double" = yes; then
                   8421:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8422: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8423: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8424: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8425:    else
                   8426:      ac_cv_sizeof_double=0
                   8427:    fi
                   8428: fi
1.1       bertrand 8429: 
1.15      bertrand 8430: fi
                   8431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8432: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8433: 
1.1       bertrand 8434: 
                   8435: 
1.15      bertrand 8436: cat >>confdefs.h <<_ACEOF
                   8437: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8438: _ACEOF
1.15      bertrand 8439: 
                   8440: 
                   8441: # The cast to long int works around a bug in the HP C Compiler
                   8442: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8443: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8444: # This bug is HP SR number 8606223364.
                   8445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8446: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8447: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8448:   $as_echo_n "(cached) " >&6
                   8449: else
                   8450:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8451: 
1.14      bertrand 8452: else
1.15      bertrand 8453:   if test "$ac_cv_type_long_double" = yes; then
                   8454:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8455: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8456: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8457: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8458:    else
                   8459:      ac_cv_sizeof_long_double=0
                   8460:    fi
                   8461: fi
1.1       bertrand 8462: 
                   8463: fi
1.15      bertrand 8464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8465: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8466: 
1.1       bertrand 8467: 
                   8468: 
1.15      bertrand 8469: cat >>confdefs.h <<_ACEOF
                   8470: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8471: _ACEOF
                   8472: 
                   8473: 
1.15      bertrand 8474: 
                   8475: ac_header_dirent=no
                   8476: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8477:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8479: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8480: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8481:   $as_echo_n "(cached) " >&6
1.1       bertrand 8482: else
1.15      bertrand 8483:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8484: /* end confdefs.h.  */
                   8485: #include <sys/types.h>
1.15      bertrand 8486: #include <$ac_hdr>
1.1       bertrand 8487: 
1.15      bertrand 8488: int
                   8489: main ()
                   8490: {
                   8491: if ((DIR *) 0)
                   8492: return 0;
                   8493:   ;
                   8494:   return 0;
                   8495: }
1.1       bertrand 8496: _ACEOF
1.15      bertrand 8497: if ac_fn_c_try_compile "$LINENO"; then :
                   8498:   eval "$as_ac_Header=yes"
1.1       bertrand 8499: else
1.15      bertrand 8500:   eval "$as_ac_Header=no"
                   8501: fi
                   8502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8503: fi
1.15      bertrand 8504: eval ac_res=\$$as_ac_Header
                   8505:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8506: $as_echo "$ac_res" >&6; }
1.36      bertrand 8507: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8508:   cat >>confdefs.h <<_ACEOF
                   8509: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8510: _ACEOF
1.1       bertrand 8511: 
1.15      bertrand 8512: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8513: fi
                   8514: 
1.15      bertrand 8515: done
                   8516: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8517: if test $ac_header_dirent = dirent.h; then
                   8518:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8519: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8520: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8521:   $as_echo_n "(cached) " >&6
                   8522: else
                   8523:   ac_func_search_save_LIBS=$LIBS
                   8524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8525: /* end confdefs.h.  */
                   8526: 
                   8527: /* Override any GCC internal prototype to avoid an error.
                   8528:    Use char because int might match the return type of a GCC
                   8529:    builtin and then its argument prototype would still apply.  */
                   8530: #ifdef __cplusplus
                   8531: extern "C"
                   8532: #endif
                   8533: char opendir ();
                   8534: int
                   8535: main ()
                   8536: {
                   8537: return opendir ();
                   8538:   ;
                   8539:   return 0;
                   8540: }
1.14      bertrand 8541: _ACEOF
1.15      bertrand 8542: for ac_lib in '' dir; do
                   8543:   if test -z "$ac_lib"; then
                   8544:     ac_res="none required"
                   8545:   else
                   8546:     ac_res=-l$ac_lib
                   8547:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8548:   fi
                   8549:   if ac_fn_c_try_link "$LINENO"; then :
                   8550:   ac_cv_search_opendir=$ac_res
                   8551: fi
                   8552: rm -f core conftest.err conftest.$ac_objext \
                   8553:     conftest$ac_exeext
1.57      bertrand 8554:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8555:   break
                   8556: fi
                   8557: done
1.57      bertrand 8558: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8559: 
1.15      bertrand 8560: else
                   8561:   ac_cv_search_opendir=no
                   8562: fi
                   8563: rm conftest.$ac_ext
                   8564: LIBS=$ac_func_search_save_LIBS
                   8565: fi
                   8566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8567: $as_echo "$ac_cv_search_opendir" >&6; }
                   8568: ac_res=$ac_cv_search_opendir
                   8569: if test "$ac_res" != no; then :
                   8570:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8571: 
1.14      bertrand 8572: fi
1.1       bertrand 8573: 
                   8574: else
1.15      bertrand 8575:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8576: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8577: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8578:   $as_echo_n "(cached) " >&6
                   8579: else
                   8580:   ac_func_search_save_LIBS=$LIBS
                   8581: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8582: /* end confdefs.h.  */
1.15      bertrand 8583: 
                   8584: /* Override any GCC internal prototype to avoid an error.
                   8585:    Use char because int might match the return type of a GCC
                   8586:    builtin and then its argument prototype would still apply.  */
                   8587: #ifdef __cplusplus
                   8588: extern "C"
                   8589: #endif
                   8590: char opendir ();
1.1       bertrand 8591: int
                   8592: main ()
                   8593: {
1.15      bertrand 8594: return opendir ();
1.1       bertrand 8595:   ;
                   8596:   return 0;
                   8597: }
                   8598: _ACEOF
1.15      bertrand 8599: for ac_lib in '' x; do
                   8600:   if test -z "$ac_lib"; then
                   8601:     ac_res="none required"
                   8602:   else
                   8603:     ac_res=-l$ac_lib
                   8604:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8605:   fi
                   8606:   if ac_fn_c_try_link "$LINENO"; then :
                   8607:   ac_cv_search_opendir=$ac_res
                   8608: fi
                   8609: rm -f core conftest.err conftest.$ac_objext \
                   8610:     conftest$ac_exeext
1.57      bertrand 8611:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8612:   break
                   8613: fi
                   8614: done
1.57      bertrand 8615: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8616: 
1.1       bertrand 8617: else
1.15      bertrand 8618:   ac_cv_search_opendir=no
                   8619: fi
                   8620: rm conftest.$ac_ext
                   8621: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8622: fi
1.15      bertrand 8623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8624: $as_echo "$ac_cv_search_opendir" >&6; }
                   8625: ac_res=$ac_cv_search_opendir
                   8626: if test "$ac_res" != no; then :
                   8627:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8628: 
1.1       bertrand 8629: fi
                   8630: 
                   8631: fi
                   8632: 
1.15      bertrand 8633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8634: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8635: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8636:   $as_echo_n "(cached) " >&6
1.1       bertrand 8637: else
1.15      bertrand 8638:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8639: /* end confdefs.h.  */
1.15      bertrand 8640: #include <stdlib.h>
                   8641: #include <stdarg.h>
                   8642: #include <string.h>
                   8643: #include <float.h>
                   8644: 
1.1       bertrand 8645: int
                   8646: main ()
                   8647: {
1.15      bertrand 8648: 
1.1       bertrand 8649:   ;
                   8650:   return 0;
                   8651: }
                   8652: _ACEOF
1.15      bertrand 8653: if ac_fn_c_try_compile "$LINENO"; then :
                   8654:   ac_cv_header_stdc=yes
1.14      bertrand 8655: else
1.15      bertrand 8656:   ac_cv_header_stdc=no
                   8657: fi
                   8658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8659: 
                   8660: if test $ac_cv_header_stdc = yes; then
                   8661:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8662:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8663: /* end confdefs.h.  */
                   8664: #include <string.h>
                   8665: 
                   8666: _ACEOF
                   8667: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8668:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8669: 
1.15      bertrand 8670: else
                   8671:   ac_cv_header_stdc=no
1.1       bertrand 8672: fi
1.15      bertrand 8673: rm -f conftest*
1.14      bertrand 8674: 
1.1       bertrand 8675: fi
                   8676: 
1.15      bertrand 8677: if test $ac_cv_header_stdc = yes; then
                   8678:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8679:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8680: /* end confdefs.h.  */
                   8681: #include <stdlib.h>
                   8682: 
1.14      bertrand 8683: _ACEOF
1.15      bertrand 8684: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8685:   $EGREP "free" >/dev/null 2>&1; then :
                   8686: 
                   8687: else
                   8688:   ac_cv_header_stdc=no
                   8689: fi
                   8690: rm -f conftest*
1.1       bertrand 8691: 
                   8692: fi
                   8693: 
1.15      bertrand 8694: if test $ac_cv_header_stdc = yes; then
                   8695:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8696:   if test "$cross_compiling" = yes; then :
                   8697:   :
1.1       bertrand 8698: else
1.15      bertrand 8699:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8700: /* end confdefs.h.  */
1.15      bertrand 8701: #include <ctype.h>
                   8702: #include <stdlib.h>
                   8703: #if ((' ' & 0x0FF) == 0x020)
                   8704: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8705: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8706: #else
                   8707: # define ISLOWER(c) \
                   8708:           (('a' <= (c) && (c) <= 'i') \
                   8709:             || ('j' <= (c) && (c) <= 'r') \
                   8710:             || ('s' <= (c) && (c) <= 'z'))
                   8711: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8712: #endif
1.1       bertrand 8713: 
1.15      bertrand 8714: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8715: int
                   8716: main ()
                   8717: {
1.15      bertrand 8718:   int i;
                   8719:   for (i = 0; i < 256; i++)
                   8720:     if (XOR (islower (i), ISLOWER (i))
                   8721:    || toupper (i) != TOUPPER (i))
                   8722:       return 2;
1.1       bertrand 8723:   return 0;
                   8724: }
                   8725: _ACEOF
1.15      bertrand 8726: if ac_fn_c_try_run "$LINENO"; then :
                   8727: 
1.14      bertrand 8728: else
1.15      bertrand 8729:   ac_cv_header_stdc=no
                   8730: fi
                   8731: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8732:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8733: fi
1.14      bertrand 8734: 
1.1       bertrand 8735: fi
                   8736: fi
1.15      bertrand 8737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8738: $as_echo "$ac_cv_header_stdc" >&6; }
                   8739: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8740: 
1.15      bertrand 8741: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8742: 
                   8743: fi
                   8744: 
1.15      bertrand 8745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8746: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8747: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8748:   $as_echo_n "(cached) " >&6
1.1       bertrand 8749: else
1.15      bertrand 8750:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8751: /* end confdefs.h.  */
1.14      bertrand 8752: #include <sys/types.h>
1.15      bertrand 8753: #include <sys/wait.h>
                   8754: #ifndef WEXITSTATUS
                   8755: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8756: #endif
                   8757: #ifndef WIFEXITED
                   8758: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8759: #endif
1.1       bertrand 8760: 
                   8761: int
                   8762: main ()
                   8763: {
1.15      bertrand 8764:   int s;
                   8765:   wait (&s);
                   8766:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8767:   ;
                   8768:   return 0;
                   8769: }
                   8770: _ACEOF
1.15      bertrand 8771: if ac_fn_c_try_compile "$LINENO"; then :
                   8772:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8773: else
1.15      bertrand 8774:   ac_cv_header_sys_wait_h=no
                   8775: fi
                   8776: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8777: fi
                   8778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8779: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8780: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8781: 
1.15      bertrand 8782: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8783: 
                   8784: fi
                   8785: 
1.15      bertrand 8786: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8787:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8788:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8789: do :
                   8790:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8791: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8792: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8793:   cat >>confdefs.h <<_ACEOF
                   8794: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8795: _ACEOF
                   8796: 
                   8797: fi
                   8798: 
1.15      bertrand 8799: done
                   8800: 
1.1       bertrand 8801: 
1.15      bertrand 8802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8803: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8804: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8805:   $as_echo_n "(cached) " >&6
1.1       bertrand 8806: else
1.15      bertrand 8807:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8808: /* end confdefs.h.  */
                   8809: 
                   8810: int
                   8811: main ()
                   8812: {
1.15      bertrand 8813: /* FIXME: Include the comments suggested by Paul. */
                   8814: #ifndef __cplusplus
                   8815:   /* Ultrix mips cc rejects this.  */
                   8816:   typedef int charset[2];
                   8817:   const charset cs;
                   8818:   /* SunOS 4.1.1 cc rejects this.  */
                   8819:   char const *const *pcpcc;
                   8820:   char **ppc;
                   8821:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8822:   struct point {int x, y;};
                   8823:   static struct point const zero = {0,0};
                   8824:   /* AIX XL C 1.02.0.0 rejects this.
                   8825:      It does not let you subtract one const X* pointer from another in
                   8826:      an arm of an if-expression whose if-part is not a constant
                   8827:      expression */
                   8828:   const char *g = "string";
                   8829:   pcpcc = &g + (g ? g-g : 0);
                   8830:   /* HPUX 7.0 cc rejects these. */
                   8831:   ++pcpcc;
                   8832:   ppc = (char**) pcpcc;
                   8833:   pcpcc = (char const *const *) ppc;
                   8834:   { /* SCO 3.2v4 cc rejects this.  */
                   8835:     char *t;
                   8836:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8837: 
                   8838:     *t++ = 0;
                   8839:     if (s) return 0;
                   8840:   }
                   8841:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8842:     int x[] = {25, 17};
                   8843:     const int *foo = &x[0];
                   8844:     ++foo;
                   8845:   }
                   8846:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8847:     typedef const int *iptr;
                   8848:     iptr p = 0;
                   8849:     ++p;
                   8850:   }
                   8851:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8852:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8853:     struct s { int j; const int *ap[3]; };
                   8854:     struct s *b; b->j = 5;
                   8855:   }
                   8856:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8857:     const int foo = 10;
                   8858:     if (!foo) return 0;
                   8859:   }
                   8860:   return !cs[0] && !zero.x;
                   8861: #endif
                   8862: 
1.14      bertrand 8863:   ;
1.1       bertrand 8864:   return 0;
                   8865: }
                   8866: _ACEOF
1.15      bertrand 8867: if ac_fn_c_try_compile "$LINENO"; then :
                   8868:   ac_cv_c_const=yes
1.14      bertrand 8869: else
1.15      bertrand 8870:   ac_cv_c_const=no
1.1       bertrand 8871: fi
1.14      bertrand 8872: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8873: fi
1.15      bertrand 8874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8875: $as_echo "$ac_cv_c_const" >&6; }
                   8876: if test $ac_cv_c_const = no; then
1.1       bertrand 8877: 
1.15      bertrand 8878: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8879: 
1.15      bertrand 8880: fi
1.1       bertrand 8881: 
1.15      bertrand 8882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8883: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8884: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8885:   $as_echo_n "(cached) " >&6
1.1       bertrand 8886: else
1.15      bertrand 8887:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8888: /* end confdefs.h.  */
1.15      bertrand 8889: #include <sys/types.h>
                   8890: 
1.1       bertrand 8891: _ACEOF
1.15      bertrand 8892: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8893:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8894:   ac_cv_type_uid_t=yes
1.1       bertrand 8895: else
1.15      bertrand 8896:   ac_cv_type_uid_t=no
                   8897: fi
                   8898: rm -f conftest*
1.14      bertrand 8899: 
1.1       bertrand 8900: fi
1.15      bertrand 8901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8902: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8903: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8904: 
1.15      bertrand 8905: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8906: 
                   8907: 
1.15      bertrand 8908: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8909: 
                   8910: fi
                   8911: 
1.15      bertrand 8912: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8913: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8914: 
                   8915: else
1.15      bertrand 8916: 
                   8917: cat >>confdefs.h <<_ACEOF
                   8918: #define pid_t int
1.14      bertrand 8919: _ACEOF
                   8920: 
1.15      bertrand 8921: fi
1.14      bertrand 8922: 
1.15      bertrand 8923: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8924: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8925: 
1.15      bertrand 8926: else
1.1       bertrand 8927: 
1.15      bertrand 8928: cat >>confdefs.h <<_ACEOF
                   8929: #define size_t unsigned int
1.1       bertrand 8930: _ACEOF
1.14      bertrand 8931: 
1.1       bertrand 8932: fi
                   8933: 
1.15      bertrand 8934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8935: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 8936: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 8937:   $as_echo_n "(cached) " >&6
1.1       bertrand 8938: else
1.15      bertrand 8939:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8940: /* end confdefs.h.  */
1.15      bertrand 8941: #include <sys/types.h>
                   8942: #include <sys/time.h>
                   8943: #include <time.h>
1.1       bertrand 8944: 
1.14      bertrand 8945: int
                   8946: main ()
                   8947: {
1.15      bertrand 8948: if ((struct tm *) 0)
                   8949: return 0;
1.14      bertrand 8950:   ;
                   8951:   return 0;
                   8952: }
1.1       bertrand 8953: _ACEOF
1.15      bertrand 8954: if ac_fn_c_try_compile "$LINENO"; then :
                   8955:   ac_cv_header_time=yes
1.1       bertrand 8956: else
1.15      bertrand 8957:   ac_cv_header_time=no
1.1       bertrand 8958: fi
1.15      bertrand 8959: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8960: fi
1.15      bertrand 8961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8962: $as_echo "$ac_cv_header_time" >&6; }
                   8963: if test $ac_cv_header_time = yes; then
1.1       bertrand 8964: 
1.15      bertrand 8965: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8966: 
                   8967: fi
                   8968: 
1.15      bertrand 8969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8970: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 8971: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 8972:   $as_echo_n "(cached) " >&6
1.1       bertrand 8973: else
1.15      bertrand 8974:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8975: /* end confdefs.h.  */
1.15      bertrand 8976: #include <sys/types.h>
                   8977: #include <time.h>
1.1       bertrand 8978: 
                   8979: int
                   8980: main ()
                   8981: {
1.15      bertrand 8982: struct tm tm;
                   8983:                     int *p = &tm.tm_sec;
                   8984:                     return !p;
1.1       bertrand 8985:   ;
                   8986:   return 0;
                   8987: }
                   8988: _ACEOF
1.15      bertrand 8989: if ac_fn_c_try_compile "$LINENO"; then :
                   8990:   ac_cv_struct_tm=time.h
1.1       bertrand 8991: else
1.15      bertrand 8992:   ac_cv_struct_tm=sys/time.h
                   8993: fi
                   8994: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8995: fi
                   8996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8997: $as_echo "$ac_cv_struct_tm" >&6; }
                   8998: if test $ac_cv_struct_tm = sys/time.h; then
                   8999: 
                   9000: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9001: 
1.1       bertrand 9002: fi
                   9003: 
                   9004: 
1.15      bertrand 9005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9006: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9007: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9008:   $as_echo_n "(cached) " >&6
1.1       bertrand 9009: else
1.15      bertrand 9010:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9011: /* end confdefs.h.  */
1.15      bertrand 9012: #include <sys/types.h>
                   9013: #include <signal.h>
1.1       bertrand 9014: 
                   9015: int
                   9016: main ()
                   9017: {
1.15      bertrand 9018: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9019:   ;
                   9020:   return 0;
                   9021: }
                   9022: _ACEOF
1.15      bertrand 9023: if ac_fn_c_try_compile "$LINENO"; then :
                   9024:   ac_cv_type_signal=int
1.1       bertrand 9025: else
1.15      bertrand 9026:   ac_cv_type_signal=void
1.1       bertrand 9027: fi
1.15      bertrand 9028: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9029: fi
1.15      bertrand 9030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9031: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9032: 
1.15      bertrand 9033: cat >>confdefs.h <<_ACEOF
                   9034: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9035: _ACEOF
1.1       bertrand 9036: 
1.15      bertrand 9037: 
                   9038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9039: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9040: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9041:   $as_echo_n "(cached) " >&6
                   9042: else
                   9043:   if test "$cross_compiling" = yes; then :
                   9044:   ac_cv_func_strcoll_works=no
                   9045: else
                   9046:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9047: /* end confdefs.h.  */
                   9048: $ac_includes_default
                   9049: int
                   9050: main ()
                   9051: {
                   9052: return (strcoll ("abc", "def") >= 0 ||
                   9053:     strcoll ("ABC", "DEF") >= 0 ||
                   9054:     strcoll ("123", "456") >= 0)
                   9055:   ;
                   9056:   return 0;
                   9057: }
                   9058: _ACEOF
                   9059: if ac_fn_c_try_run "$LINENO"; then :
                   9060:   ac_cv_func_strcoll_works=yes
                   9061: else
                   9062:   ac_cv_func_strcoll_works=no
                   9063: fi
                   9064: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9065:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9066: fi
1.1       bertrand 9067: 
                   9068: fi
1.15      bertrand 9069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9070: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9071: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9072: 
1.15      bertrand 9073: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9074: 
1.15      bertrand 9075: fi
1.1       bertrand 9076: 
1.15      bertrand 9077: for ac_func in strftime
                   9078: do :
                   9079:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9080: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9081:   cat >>confdefs.h <<_ACEOF
                   9082: #define HAVE_STRFTIME 1
                   9083: _ACEOF
1.1       bertrand 9084: 
                   9085: else
1.15      bertrand 9086:   # strftime is in -lintl on SCO UNIX.
                   9087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9088: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9089: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9090:   $as_echo_n "(cached) " >&6
                   9091: else
                   9092:   ac_check_lib_save_LIBS=$LIBS
                   9093: LIBS="-lintl  $LIBS"
                   9094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9095: /* end confdefs.h.  */
                   9096: 
                   9097: /* Override any GCC internal prototype to avoid an error.
                   9098:    Use char because int might match the return type of a GCC
                   9099:    builtin and then its argument prototype would still apply.  */
                   9100: #ifdef __cplusplus
                   9101: extern "C"
                   9102: #endif
1.15      bertrand 9103: char strftime ();
1.1       bertrand 9104: int
                   9105: main ()
                   9106: {
1.15      bertrand 9107: return strftime ();
1.1       bertrand 9108:   ;
                   9109:   return 0;
                   9110: }
                   9111: _ACEOF
1.15      bertrand 9112: if ac_fn_c_try_link "$LINENO"; then :
                   9113:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9114: else
1.15      bertrand 9115:   ac_cv_lib_intl_strftime=no
                   9116: fi
                   9117: rm -f core conftest.err conftest.$ac_objext \
                   9118:     conftest$ac_exeext conftest.$ac_ext
                   9119: LIBS=$ac_check_lib_save_LIBS
                   9120: fi
                   9121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9122: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9123: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9124:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9125: 
                   9126: LIBS="-lintl $LIBS"
                   9127: fi
                   9128: 
                   9129: fi
                   9130: done
                   9131: 
                   9132: for ac_func in vprintf
                   9133: do :
                   9134:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9135: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9136:   cat >>confdefs.h <<_ACEOF
                   9137: #define HAVE_VPRINTF 1
                   9138: _ACEOF
                   9139: 
                   9140: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9141: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9142: 
                   9143: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9144: 
                   9145: fi
                   9146: 
                   9147: fi
1.15      bertrand 9148: done
                   9149: 
                   9150: 
                   9151: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9152:        strerror strspn strstr strtod
                   9153: do :
                   9154:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9155: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9156: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9157:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9158: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9159: _ACEOF
                   9160: 
                   9161: fi
                   9162: done
                   9163: 
                   9164: 
1.15      bertrand 9165: 
                   9166: # Check whether --with-openssl_arch was given.
                   9167: if test "${with_openssl_arch+set}" = set; then :
                   9168:   withval=$with_openssl_arch;
                   9169: else
                   9170:   with_openssl_arch=none
                   9171: fi
                   9172: 
                   9173: 
1.31      bertrand 9174: if test $(uname) = "OS/2"; then
1.34      bertrand 9175:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9176: else
1.31      bertrand 9177:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9178:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9179:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9180:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9181:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9182:    elif test "x$with_openssl_arch" = xlist; then
                   9183:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9184:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9185:    else
1.67      bertrand 9186:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9187:    fi
1.15      bertrand 9188: fi
1.1       bertrand 9189: 
                   9190: if test "$MYGNUPLOT" = "yes"; then
                   9191:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9192:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9193:                (cd "$srcdir/tools" && tar -xf -)
                   9194:    fi
1.69      bertrand 9195: 
                   9196: 
                   9197: subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9198: 
                   9199:    GNUPLOT_COMPILATION=$GNUPLOT
                   9200: else
                   9201:    GNUPLOT_COMPILATION=
                   9202: fi
                   9203: 
                   9204: 
                   9205: 
1.69      bertrand 9206: HOST=$host
                   9207: 
                   9208: 
1.1       bertrand 9209: case $host_cpu in
                   9210: 
                   9211:     i?86)
                   9212:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9213:            -Wno-pointer-sign"
                   9214:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9215:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9216:    break ;;
                   9217: 
                   9218:    x86_64*)
                   9219:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9220:            -Wno-pointer-sign"
                   9221:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9222:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9223:    break ;;
                   9224: 
                   9225:     alpha*)
                   9226:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9227:            -Wno-pointer-sign"
                   9228:    FFLAGS="$FFLAGS -mieee -Wall"
                   9229:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9230:    break ;;
                   9231: 
                   9232:     sparc*)
                   9233:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9234:            -Wno-pointer-sign"
                   9235:    FFLAGS="$FFLAGS -Wall"
                   9236:    FCFLAGS="$FCFLAGS -Wall"
                   9237:    break ;;
                   9238: 
                   9239: esac
                   9240: 
1.8       bertrand 9241: case $host_os in
                   9242: 
                   9243:    cygwin*)
                   9244:        OS=Cygwin
                   9245:    break ;;
                   9246: 
                   9247:    interix*)
                   9248:        OS=Interix
                   9249:    break ;;
                   9250: 
                   9251:    *)
                   9252:        OS=$(uname)
                   9253:    break ;;
                   9254: 
                   9255: esac
                   9256: 
                   9257: 
                   9258: 
1.1       bertrand 9259: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9260: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9261: MALLOC=
1.1       bertrand 9262: 
1.22      bertrand 9263: case $OS in
1.17      bertrand 9264: 
                   9265:     Darwin)
1.31      bertrand 9266:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9267:        NESTED_FUNCTIONS=-fnested-functions
                   9268:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9269:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9270:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9271:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9272:                --disable-shared --enable-static --enable-threads \
                   9273:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9274:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9275:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9276:        C_STANDARD=-std=gnu99
1.75      bertrand 9277:        ELF=
1.17      bertrand 9278:    break ;;
                   9279: 
1.31      bertrand 9280:     Cygwin)
                   9281:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9282:        NESTED_FUNCTIONS=
                   9283:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9284:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9285:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9286:                --disable-shared --enable-static --enable-threads \
                   9287:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9288:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9289:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9290:        C_STANDARD=-std=gnu99
1.75      bertrand 9291:        ELF=
1.17      bertrand 9292:    break ;;
                   9293: 
1.34      bertrand 9294:    Interix)
                   9295:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9296:        NESTED_FUNCTIONS=
                   9297:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9298:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9299:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9300:                --disable-shared --enable-static --enable-threads \
                   9301:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9302:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9303:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9304:        C_STANDARD=-std=gnu99
1.75      bertrand 9305:        ELF=
1.34      bertrand 9306:    break;;
                   9307: 
1.31      bertrand 9308:     AIX)
                   9309:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9310:        NESTED_FUNCTIONS=
                   9311:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9312:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9313:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9314:                --disable-shared --enable-static --enable-threads \
                   9315:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9316:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9317:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9318:        C_STANDARD=-std=gnu99
1.75      bertrand 9319:        ELF=
1.18      bertrand 9320:    break ;;
                   9321: 
1.31      bertrand 9322:     OS/2)
1.37      bertrand 9323:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9324:            FINAL_ENCODING=CP850; \
                   9325:        fi;
1.31      bertrand 9326:        OS=OS2
                   9327:        NESTED_FUNCTIONS=
                   9328:        EXPORT_DYNAMIC=-Zmap
                   9329:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9330:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9331:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9332:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9333:                --enable-threads \
                   9334:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9335:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9336:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9337:        C_STANDARD=
1.75      bertrand 9338:        ELF=
1.31      bertrand 9339:    break;;
                   9340: 
1.35      bertrand 9341:    OpenBSD)
1.37      bertrand 9342:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9343:            FINAL_ENCODING=UTF-8; \
                   9344:        fi;
                   9345:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9346:        NESTED_FUNCTIONS=
                   9347:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9348:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9349:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9350:                --disable-shared --enable-static --enable-threads \
                   9351:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9352:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9353:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9354:        C_STANDARD=-std=gnu99
1.75      bertrand 9355:        ELF=
1.35      bertrand 9356:    break;;
                   9357: 
1.49      bertrand 9358:     SunOS)
                   9359:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9360:        NESTED_FUNCTIONS=
                   9361:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9362: 
                   9363:        if test $IPCS_SYSV = no; then
                   9364:            IPCS_SYSV=-UIPCS_SYSV
                   9365:        else
                   9366:            IPCS_SYSV=-DIPCS_SYSV
                   9367:        fi
                   9368: 
                   9369:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9370:                --disable-shared --enable-static --enable-threads \
                   9371:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9372:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9373:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9374:        C_STANDARD=-std=gnu99
                   9375:        MALLOC=-lumem
1.75      bertrand 9376:        ELF=
                   9377:    break ;;
                   9378: 
                   9379:     NetBSD)
                   9380:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9381:        NESTED_FUNCTIONS=
                   9382:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9383: 
                   9384:        if test $IPCS_SYSV = no; then
                   9385:            IPCS_SYSV=-UIPCS_SYSV
                   9386:        else
                   9387:            IPCS_SYSV=-DIPCS_SYSV
                   9388:        fi
                   9389: 
                   9390:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9391:                --disable-shared --enable-static --enable-threads \
                   9392:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9393:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9394:                LDFLAGS=\"$LDFLAGS\""
                   9395:        C_STANDARD=-std=gnu99
                   9396:        GCCBIN=`which gcc`
                   9397:        GCCLIB=`dirname $GCCBIN`/../lib
                   9398:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9399:    break ;;
                   9400: 
1.17      bertrand 9401:     *)
1.31      bertrand 9402:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9403:        NESTED_FUNCTIONS=
                   9404:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9405: 
                   9406:        if test $IPCS_SYSV = no; then
                   9407:            IPCS_SYSV=-UIPCS_SYSV
                   9408:        else
                   9409:            IPCS_SYSV=-DIPCS_SYSV
                   9410:        fi
                   9411: 
1.31      bertrand 9412:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9413:                --disable-shared --enable-static --enable-threads \
                   9414:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9415:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9416:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9417:        C_STANDARD=-std=gnu99
1.75      bertrand 9418:        ELF=
1.17      bertrand 9419:    break ;;
                   9420: 
                   9421: esac
                   9422: 
                   9423: 
                   9424: 
                   9425: 
1.1       bertrand 9426: 
                   9427: 
                   9428: 
                   9429: 
                   9430: 
                   9431: 
                   9432: 
                   9433: 
                   9434: 
                   9435: 
                   9436: 
                   9437: 
                   9438: 
                   9439: 
                   9440: 
                   9441: 
                   9442: 
                   9443: 
                   9444: 
1.9       bertrand 9445: 
1.24      bertrand 9446: 
1.30      bertrand 9447: 
1.33      bertrand 9448: 
                   9449: 
                   9450: 
1.34      bertrand 9451: 
1.35      bertrand 9452: 
1.49      bertrand 9453: 
1.55      bertrand 9454: 
                   9455: 
1.56      bertrand 9456: 
                   9457: 
                   9458: 
                   9459: 
1.69      bertrand 9460: 
1.75      bertrand 9461: 
1.69      bertrand 9462: subdirs="$subdirs tools/$NCURSES"
                   9463: 
                   9464: subdirs="$subdirs tools/$READLINE"
                   9465: 
                   9466: subdirs="$subdirs tools/$GSL"
                   9467: 
                   9468: subdirs="$subdirs tools/$GPP"
                   9469: 
                   9470: subdirs="$subdirs tools/$FILE"
                   9471: 
                   9472: subdirs="$subdirs tools/$ICONV"
                   9473: 
                   9474: subdirs="$subdirs tools/$SQLITE"
                   9475: 
                   9476: subdirs="$subdirs tools/$UNITS"
                   9477: 
1.76      bertrand 9478: subdirs="$subdirs tools/$SIGSEGV"
                   9479: 
1.69      bertrand 9480: 
1.1       bertrand 9481: ac_config_files="$ac_config_files Makefile"
                   9482: 
                   9483: ac_config_files="$ac_config_files COPYING"
                   9484: 
                   9485: ac_config_files="$ac_config_files tools/Makefile"
                   9486: 
                   9487: ac_config_files="$ac_config_files src/Makefile"
                   9488: 
                   9489: ac_config_files="$ac_config_files man/Makefile"
                   9490: 
                   9491: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9492: 
                   9493: ac_config_files="$ac_config_files doc/Makefile"
                   9494: 
                   9495: ac_config_files="$ac_config_files scripts/Makefile"
                   9496: 
                   9497: ac_config_files="$ac_config_files scripts/mkrplso"
                   9498: 
                   9499: ac_config_files="$ac_config_files scripts/rplcc"
                   9500: 
                   9501: ac_config_files="$ac_config_files scripts/rpllink"
                   9502: 
                   9503: ac_config_files="$ac_config_files rpltags/Makefile"
                   9504: 
                   9505: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9506: 
1.9       bertrand 9507: ac_config_files="$ac_config_files rplsums/Makefile"
                   9508: 
1.55      bertrand 9509: ac_config_files="$ac_config_files rplcas/Makefile"
                   9510: 
1.39      bertrand 9511: ac_config_files="$ac_config_files rplawk/Makefile"
                   9512: 
1.1       bertrand 9513: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9514: 
                   9515: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9516: 
                   9517: 
                   9518: ac_config_files="$ac_config_files man/rpl.1"
                   9519: 
                   9520: ac_config_files="$ac_config_files man/rplcc.1"
                   9521: 
                   9522: ac_config_files="$ac_config_files man/rpllink.1"
                   9523: 
                   9524: ac_config_files="$ac_config_files man/rpltags.1"
                   9525: 
                   9526: ac_config_files="$ac_config_files man/mkrplso.1"
                   9527: 
                   9528: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9529: 
                   9530: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9531: 
                   9532: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9533: 
                   9534: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9535: 
                   9536: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9537: 
                   9538: 
                   9539: cat >confcache <<\_ACEOF
                   9540: # This file is a shell script that caches the results of configure
                   9541: # tests run on this system so they can be shared between configure
                   9542: # scripts and configure runs, see configure's option --config-cache.
                   9543: # It is not useful on other systems.  If it contains results you don't
                   9544: # want to keep, you may remove or edit it.
                   9545: #
                   9546: # config.status only pays attention to the cache file if you give it
                   9547: # the --recheck option to rerun configure.
                   9548: #
                   9549: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9550: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9551: # following values.
                   9552: 
                   9553: _ACEOF
                   9554: 
                   9555: # The following way of writing the cache mishandles newlines in values,
                   9556: # but we know of no workaround that is simple, portable, and efficient.
                   9557: # So, we kill variables containing newlines.
                   9558: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9559: # and sets the high bit in the cache file unless we assign to the vars.
                   9560: (
                   9561:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9562:     eval ac_val=\$$ac_var
                   9563:     case $ac_val in #(
                   9564:     *${as_nl}*)
                   9565:       case $ac_var in #(
1.15      bertrand 9566:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9567: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9568:       esac
                   9569:       case $ac_var in #(
                   9570:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9571:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9572:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9573:       esac ;;
                   9574:     esac
                   9575:   done
                   9576: 
                   9577:   (set) 2>&1 |
                   9578:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9579:     *${as_nl}ac_space=\ *)
1.15      bertrand 9580:       # `set' does not quote correctly, so add quotes: double-quote
                   9581:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9582:       sed -n \
                   9583:    "s/'/'\\\\''/g;
                   9584:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9585:       ;; #(
                   9586:     *)
                   9587:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9588:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9589:       ;;
                   9590:     esac |
                   9591:     sort
                   9592: ) |
                   9593:   sed '
                   9594:      /^ac_cv_env_/b end
                   9595:      t clear
                   9596:      :clear
                   9597:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9598:      t end
                   9599:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9600:      :end' >>confcache
                   9601: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9602:   if test -w "$cache_file"; then
1.57      bertrand 9603:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9604:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9605: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9606:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9607:    cat confcache >"$cache_file"
                   9608:       else
                   9609:         case $cache_file in #(
                   9610:         */* | ?:*)
                   9611:      mv -f confcache "$cache_file"$$ &&
                   9612:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9613:         *)
                   9614:      mv -f confcache "$cache_file" ;;
                   9615:    esac
                   9616:       fi
                   9617:     fi
1.1       bertrand 9618:   else
1.15      bertrand 9619:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9620: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9621:   fi
                   9622: fi
                   9623: rm -f confcache
                   9624: 
                   9625: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9626: # Let make expand exec_prefix.
                   9627: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9628: 
                   9629: DEFS=-DHAVE_CONFIG_H
                   9630: 
                   9631: ac_libobjs=
                   9632: ac_ltlibobjs=
1.36      bertrand 9633: U=
1.1       bertrand 9634: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9635:   # 1. Remove the extension, and $U if already installed.
                   9636:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9637:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9638:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9639:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9640:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9641:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9642: done
                   9643: LIBOBJS=$ac_libobjs
                   9644: 
                   9645: LTLIBOBJS=$ac_ltlibobjs
                   9646: 
                   9647: 
1.15      bertrand 9648:  if test -n "$EXEEXT"; then
                   9649:   am__EXEEXT_TRUE=
                   9650:   am__EXEEXT_FALSE='#'
                   9651: else
                   9652:   am__EXEEXT_TRUE='#'
                   9653:   am__EXEEXT_FALSE=
                   9654: fi
                   9655: 
1.1       bertrand 9656: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9657:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9658: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9659: fi
                   9660: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9661:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9662: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9663: fi
                   9664: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9665:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9666: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9667: fi
                   9668: 
1.57      bertrand 9669: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9670: ac_write_fail=0
1.1       bertrand 9671: ac_clean_files_save=$ac_clean_files
                   9672: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9673: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9674: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9675: as_write_fail=0
                   9676: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9677: #! $SHELL
                   9678: # Generated by $as_me.
                   9679: # Run this file to recreate the current configuration.
                   9680: # Compiler output produced by configure, useful for debugging
                   9681: # configure, is in config.log if it exists.
                   9682: 
                   9683: debug=false
                   9684: ac_cs_recheck=false
                   9685: ac_cs_silent=false
1.15      bertrand 9686: 
1.14      bertrand 9687: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9688: export SHELL
                   9689: _ASEOF
                   9690: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9691: ## -------------------- ##
                   9692: ## M4sh Initialization. ##
                   9693: ## -------------------- ##
1.1       bertrand 9694: 
                   9695: # Be more Bourne compatible
                   9696: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9697: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9698:   emulate sh
                   9699:   NULLCMD=:
1.15      bertrand 9700:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9701:   # is contrary to our usage.  Disable this feature.
                   9702:   alias -g '${1+"$@"}'='"$@"'
                   9703:   setopt NO_GLOB_SUBST
                   9704: else
1.15      bertrand 9705:   case `(set -o) 2>/dev/null` in #(
                   9706:   *posix*) :
                   9707:     set -o posix ;; #(
                   9708:   *) :
                   9709:      ;;
1.1       bertrand 9710: esac
                   9711: fi
                   9712: 
                   9713: 
1.15      bertrand 9714: as_nl='
                   9715: '
                   9716: export as_nl
                   9717: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9718: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9719: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9720: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9721: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9722: # but without wasting forks for bash or zsh.
                   9723: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9724:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9725:   as_echo='print -r --'
                   9726:   as_echo_n='print -rn --'
                   9727: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9728:   as_echo='printf %s\n'
                   9729:   as_echo_n='printf %s'
                   9730: else
                   9731:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9732:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9733:     as_echo_n='/usr/ucb/echo -n'
                   9734:   else
                   9735:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9736:     as_echo_n_body='eval
                   9737:       arg=$1;
                   9738:       case $arg in #(
                   9739:       *"$as_nl"*)
                   9740:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9741:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9742:       esac;
                   9743:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9744:     '
                   9745:     export as_echo_n_body
                   9746:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9747:   fi
                   9748:   export as_echo_body
                   9749:   as_echo='sh -c $as_echo_body as_echo'
                   9750: fi
1.14      bertrand 9751: 
                   9752: # The user is always right.
                   9753: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9754:   PATH_SEPARATOR=:
                   9755:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9756:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9757:       PATH_SEPARATOR=';'
                   9758:   }
1.1       bertrand 9759: fi
                   9760: 
                   9761: 
                   9762: # IFS
                   9763: # We need space, tab and new line, in precisely that order.  Quoting is
                   9764: # there to prevent editors from complaining about space-tab.
                   9765: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9766: # splitting by setting IFS to empty value.)
                   9767: IFS=" ""   $as_nl"
                   9768: 
                   9769: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9770: as_myself=
1.15      bertrand 9771: case $0 in #((
1.1       bertrand 9772:   *[\\/]* ) as_myself=$0 ;;
                   9773:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9774: for as_dir in $PATH
                   9775: do
                   9776:   IFS=$as_save_IFS
                   9777:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9778:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9779:   done
1.1       bertrand 9780: IFS=$as_save_IFS
                   9781: 
                   9782:      ;;
                   9783: esac
                   9784: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9785: # in which case we are not to be found in the path.
                   9786: if test "x$as_myself" = x; then
                   9787:   as_myself=$0
                   9788: fi
                   9789: if test ! -f "$as_myself"; then
1.15      bertrand 9790:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9791:   exit 1
1.1       bertrand 9792: fi
                   9793: 
1.15      bertrand 9794: # Unset variables that we do not need and which cause bugs (e.g. in
                   9795: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9796: # suppresses any "Segmentation fault" message there.  '((' could
                   9797: # trigger a bug in pdksh 5.2.14.
                   9798: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9799: do eval test x\${$as_var+set} = xset \
                   9800:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9801: done
                   9802: PS1='$ '
                   9803: PS2='> '
                   9804: PS4='+ '
                   9805: 
                   9806: # NLS nuisances.
1.15      bertrand 9807: LC_ALL=C
                   9808: export LC_ALL
                   9809: LANGUAGE=C
                   9810: export LANGUAGE
                   9811: 
                   9812: # CDPATH.
                   9813: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9814: 
                   9815: 
1.36      bertrand 9816: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9817: # ----------------------------------------
1.15      bertrand 9818: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9819: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9820: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9821: as_fn_error ()
                   9822: {
1.36      bertrand 9823:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9824:   if test "$4"; then
                   9825:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9826:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9827:   fi
1.36      bertrand 9828:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9829:   as_fn_exit $as_status
                   9830: } # as_fn_error
                   9831: 
                   9832: 
                   9833: # as_fn_set_status STATUS
                   9834: # -----------------------
                   9835: # Set $? to STATUS, without forking.
                   9836: as_fn_set_status ()
                   9837: {
                   9838:   return $1
                   9839: } # as_fn_set_status
                   9840: 
                   9841: # as_fn_exit STATUS
                   9842: # -----------------
                   9843: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9844: as_fn_exit ()
                   9845: {
                   9846:   set +e
                   9847:   as_fn_set_status $1
                   9848:   exit $1
                   9849: } # as_fn_exit
                   9850: 
                   9851: # as_fn_unset VAR
                   9852: # ---------------
                   9853: # Portably unset VAR.
                   9854: as_fn_unset ()
                   9855: {
                   9856:   { eval $1=; unset $1;}
                   9857: }
                   9858: as_unset=as_fn_unset
                   9859: # as_fn_append VAR VALUE
                   9860: # ----------------------
                   9861: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9862: # advantage of any shell optimizations that allow amortized linear growth over
                   9863: # repeated appends, instead of the typical quadratic growth present in naive
                   9864: # implementations.
                   9865: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9866:   eval 'as_fn_append ()
                   9867:   {
                   9868:     eval $1+=\$2
                   9869:   }'
                   9870: else
                   9871:   as_fn_append ()
                   9872:   {
                   9873:     eval $1=\$$1\$2
                   9874:   }
                   9875: fi # as_fn_append
                   9876: 
                   9877: # as_fn_arith ARG...
                   9878: # ------------------
                   9879: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9880: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9881: # must be portable across $(()) and expr.
                   9882: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9883:   eval 'as_fn_arith ()
                   9884:   {
                   9885:     as_val=$(( $* ))
                   9886:   }'
                   9887: else
                   9888:   as_fn_arith ()
                   9889:   {
                   9890:     as_val=`expr "$@" || test $? -eq 1`
                   9891:   }
                   9892: fi # as_fn_arith
                   9893: 
1.1       bertrand 9894: 
                   9895: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9896:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9897:   as_expr=expr
                   9898: else
                   9899:   as_expr=false
                   9900: fi
                   9901: 
                   9902: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9903:   as_basename=basename
                   9904: else
                   9905:   as_basename=false
                   9906: fi
                   9907: 
1.15      bertrand 9908: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9909:   as_dirname=dirname
                   9910: else
                   9911:   as_dirname=false
                   9912: fi
1.1       bertrand 9913: 
                   9914: as_me=`$as_basename -- "$0" ||
                   9915: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9916:     X"$0" : 'X\(//\)$' \| \
                   9917:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9918: $as_echo X/"$0" |
1.1       bertrand 9919:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9920:        s//\1/
                   9921:        q
                   9922:      }
                   9923:      /^X\/\(\/\/\)$/{
                   9924:        s//\1/
                   9925:        q
                   9926:      }
                   9927:      /^X\/\(\/\).*/{
                   9928:        s//\1/
                   9929:        q
                   9930:      }
1.14      bertrand 9931:      s/.*/./; q'`
                   9932: 
1.15      bertrand 9933: # Avoid depending upon Character Ranges.
                   9934: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9935: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9936: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9937: as_cr_digits='0123456789'
                   9938: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9939: 
                   9940: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9941: case `echo -n x` in #(((((
1.1       bertrand 9942: -n*)
1.15      bertrand 9943:   case `echo 'xy\c'` in
1.1       bertrand 9944:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9945:   xy)  ECHO_C='\c';;
                   9946:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9947:        ECHO_T='    ';;
1.1       bertrand 9948:   esac;;
                   9949: *)
                   9950:   ECHO_N='-n';;
                   9951: esac
                   9952: 
                   9953: rm -f conf$$ conf$$.exe conf$$.file
                   9954: if test -d conf$$.dir; then
                   9955:   rm -f conf$$.dir/conf$$.file
                   9956: else
                   9957:   rm -f conf$$.dir
1.15      bertrand 9958:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9959: fi
1.15      bertrand 9960: if (echo >conf$$.file) 2>/dev/null; then
                   9961:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9962:     as_ln_s='ln -s'
                   9963:     # ... but there are two gotchas:
                   9964:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9965:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9966:     # In both cases, we have to default to `cp -p'.
                   9967:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9968:       as_ln_s='cp -p'
                   9969:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9970:     as_ln_s=ln
                   9971:   else
1.1       bertrand 9972:     as_ln_s='cp -p'
1.15      bertrand 9973:   fi
1.1       bertrand 9974: else
                   9975:   as_ln_s='cp -p'
                   9976: fi
                   9977: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9978: rmdir conf$$.dir 2>/dev/null
                   9979: 
1.15      bertrand 9980: 
                   9981: # as_fn_mkdir_p
                   9982: # -------------
                   9983: # Create "$as_dir" as a directory, including parents if necessary.
                   9984: as_fn_mkdir_p ()
                   9985: {
                   9986: 
                   9987:   case $as_dir in #(
                   9988:   -*) as_dir=./$as_dir;;
                   9989:   esac
                   9990:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9991:     as_dirs=
                   9992:     while :; do
                   9993:       case $as_dir in #(
                   9994:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9995:       *) as_qdir=$as_dir;;
                   9996:       esac
                   9997:       as_dirs="'$as_qdir' $as_dirs"
                   9998:       as_dir=`$as_dirname -- "$as_dir" ||
                   9999: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10000:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10001:     X"$as_dir" : 'X\(//\)$' \| \
                   10002:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10003: $as_echo X"$as_dir" |
                   10004:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10005:        s//\1/
                   10006:        q
                   10007:      }
                   10008:      /^X\(\/\/\)[^/].*/{
                   10009:        s//\1/
                   10010:        q
                   10011:      }
                   10012:      /^X\(\/\/\)$/{
                   10013:        s//\1/
                   10014:        q
                   10015:      }
                   10016:      /^X\(\/\).*/{
                   10017:        s//\1/
                   10018:        q
                   10019:      }
                   10020:      s/.*/./; q'`
                   10021:       test -d "$as_dir" && break
                   10022:     done
                   10023:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10024:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10025: 
                   10026: 
                   10027: } # as_fn_mkdir_p
1.1       bertrand 10028: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10029:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10030: else
                   10031:   test -d ./-p && rmdir ./-p
                   10032:   as_mkdir_p=false
                   10033: fi
                   10034: 
                   10035: if test -x / >/dev/null 2>&1; then
                   10036:   as_test_x='test -x'
                   10037: else
                   10038:   if ls -dL / >/dev/null 2>&1; then
                   10039:     as_ls_L_option=L
                   10040:   else
                   10041:     as_ls_L_option=
                   10042:   fi
                   10043:   as_test_x='
                   10044:     eval sh -c '\''
                   10045:       if test -d "$1"; then
1.15      bertrand 10046:    test -d "$1/.";
1.1       bertrand 10047:       else
1.15      bertrand 10048:    case $1 in #(
                   10049:    -*)set "./$1";;
1.1       bertrand 10050:    esac;
1.15      bertrand 10051:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10052:    ???[sx]*):;;*)false;;esac;fi
                   10053:     '\'' sh
                   10054:   '
                   10055: fi
                   10056: as_executable_p=$as_test_x
                   10057: 
                   10058: # Sed expression to map a string onto a valid CPP name.
                   10059: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10060: 
                   10061: # Sed expression to map a string onto a valid variable name.
                   10062: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10063: 
                   10064: 
                   10065: exec 6>&1
1.15      bertrand 10066: ## ----------------------------------- ##
                   10067: ## Main body of $CONFIG_STATUS script. ##
                   10068: ## ----------------------------------- ##
                   10069: _ASEOF
                   10070: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10071: 
1.15      bertrand 10072: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10073: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10074: # report actual input values of CONFIG_FILES etc. instead of their
                   10075: # values after options handling.
                   10076: ac_log="
1.73      bertrand 10077: This file was extended by rpl $as_me 4.1.3, which was
1.57      bertrand 10078: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10079: 
                   10080:   CONFIG_FILES    = $CONFIG_FILES
                   10081:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10082:   CONFIG_LINKS    = $CONFIG_LINKS
                   10083:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10084:   $ $0 $@
                   10085: 
                   10086: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10087: "
                   10088: 
                   10089: _ACEOF
                   10090: 
1.15      bertrand 10091: case $ac_config_files in *"
                   10092: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10093: esac
                   10094: 
                   10095: case $ac_config_headers in *"
                   10096: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10097: esac
                   10098: 
                   10099: 
                   10100: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10101: # Files that config.status was made for.
                   10102: config_files="$ac_config_files"
                   10103: config_headers="$ac_config_headers"
                   10104: config_commands="$ac_config_commands"
                   10105: 
                   10106: _ACEOF
                   10107: 
1.15      bertrand 10108: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10109: ac_cs_usage="\
1.15      bertrand 10110: \`$as_me' instantiates files and other configuration actions
                   10111: from templates according to the current configuration.  Unless the files
                   10112: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10113: 
1.15      bertrand 10114: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10115: 
                   10116:   -h, --help       print this help, then exit
                   10117:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10118:       --config     print configuration, then exit
                   10119:   -q, --quiet, --silent
                   10120:                    do not print progress messages
1.1       bertrand 10121:   -d, --debug      don't remove temporary files
                   10122:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10123:       --file=FILE[:TEMPLATE]
                   10124:                    instantiate the configuration file FILE
                   10125:       --header=FILE[:TEMPLATE]
                   10126:                    instantiate the configuration header FILE
1.1       bertrand 10127: 
                   10128: Configuration files:
                   10129: $config_files
                   10130: 
                   10131: Configuration headers:
                   10132: $config_headers
                   10133: 
                   10134: Configuration commands:
                   10135: $config_commands
                   10136: 
1.15      bertrand 10137: Report bugs to the package provider."
1.1       bertrand 10138: 
                   10139: _ACEOF
1.15      bertrand 10140: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10141: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10142: ac_cs_version="\\
1.73      bertrand 10143: rpl config.status 4.1.3
1.57      bertrand 10144: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10145:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10146: 
1.36      bertrand 10147: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10148: This config.status script is free software; the Free Software Foundation
                   10149: gives unlimited permission to copy, distribute and modify it."
                   10150: 
                   10151: ac_pwd='$ac_pwd'
                   10152: srcdir='$srcdir'
                   10153: INSTALL='$INSTALL'
                   10154: MKDIR_P='$MKDIR_P'
1.15      bertrand 10155: AWK='$AWK'
                   10156: test -n "\$AWK" || AWK=awk
1.1       bertrand 10157: _ACEOF
                   10158: 
1.15      bertrand 10159: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10160: # The default lists apply if the user does not specify any file.
1.1       bertrand 10161: ac_need_defaults=:
                   10162: while test $# != 0
                   10163: do
                   10164:   case $1 in
1.36      bertrand 10165:   --*=?*)
1.1       bertrand 10166:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10167:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10168:     ac_shift=:
                   10169:     ;;
1.36      bertrand 10170:   --*=)
                   10171:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10172:     ac_optarg=
                   10173:     ac_shift=:
                   10174:     ;;
1.1       bertrand 10175:   *)
                   10176:     ac_option=$1
                   10177:     ac_optarg=$2
                   10178:     ac_shift=shift
                   10179:     ;;
                   10180:   esac
                   10181: 
                   10182:   case $ac_option in
                   10183:   # Handling of the options.
                   10184:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10185:     ac_cs_recheck=: ;;
                   10186:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10187:     $as_echo "$ac_cs_version"; exit ;;
                   10188:   --config | --confi | --conf | --con | --co | --c )
                   10189:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10190:   --debug | --debu | --deb | --de | --d | -d )
                   10191:     debug=: ;;
                   10192:   --file | --fil | --fi | --f )
                   10193:     $ac_shift
1.15      bertrand 10194:     case $ac_optarg in
                   10195:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10196:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10197:     esac
                   10198:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10199:     ac_need_defaults=false;;
                   10200:   --header | --heade | --head | --hea )
                   10201:     $ac_shift
1.15      bertrand 10202:     case $ac_optarg in
                   10203:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10204:     esac
                   10205:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10206:     ac_need_defaults=false;;
                   10207:   --he | --h)
                   10208:     # Conflict between --help and --header
1.36      bertrand 10209:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10210: Try \`$0 --help' for more information.";;
1.1       bertrand 10211:   --help | --hel | -h )
1.15      bertrand 10212:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10213:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10214:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10215:     ac_cs_silent=: ;;
                   10216: 
                   10217:   # This is an error.
1.36      bertrand 10218:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10219: Try \`$0 --help' for more information." ;;
1.1       bertrand 10220: 
1.15      bertrand 10221:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10222:      ac_need_defaults=false ;;
                   10223: 
                   10224:   esac
                   10225:   shift
                   10226: done
                   10227: 
                   10228: ac_configure_extra_args=
                   10229: 
                   10230: if $ac_cs_silent; then
                   10231:   exec 6>/dev/null
                   10232:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10233: fi
                   10234: 
                   10235: _ACEOF
1.15      bertrand 10236: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10237: if \$ac_cs_recheck; then
1.15      bertrand 10238:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10239:   shift
                   10240:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10241:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10242:   export CONFIG_SHELL
1.15      bertrand 10243:   exec "\$@"
1.1       bertrand 10244: fi
                   10245: 
                   10246: _ACEOF
1.15      bertrand 10247: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10248: exec 5>>config.log
                   10249: {
                   10250:   echo
                   10251:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10252: ## Running $as_me. ##
                   10253: _ASBOX
1.15      bertrand 10254:   $as_echo "$ac_log"
1.1       bertrand 10255: } >&5
                   10256: 
                   10257: _ACEOF
1.15      bertrand 10258: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10259: #
                   10260: # INIT-COMMANDS
                   10261: #
                   10262: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10263: 
                   10264: _ACEOF
                   10265: 
1.15      bertrand 10266: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10267: 
                   10268: # Handling of arguments.
                   10269: for ac_config_target in $ac_config_targets
                   10270: do
                   10271:   case $ac_config_target in
                   10272:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10273:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10274:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10275:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10276:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10277:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10278:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10279:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10280:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10281:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10282:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10283:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10284:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10285:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10286:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10287:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10288:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10289:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10290:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10291:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10292:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10293:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10294:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10295:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10296:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10297:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10298:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10299:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10300:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10301:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10302: 
1.57      bertrand 10303:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10304:   esac
                   10305: done
                   10306: 
                   10307: 
                   10308: # If the user did not use the arguments to specify the items to instantiate,
                   10309: # then the envvar interface is used.  Set only those that are not.
                   10310: # We use the long form for the default assignment because of an extremely
                   10311: # bizarre bug on SunOS 4.1.3.
                   10312: if $ac_need_defaults; then
                   10313:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10314:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10315:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10316: fi
                   10317: 
                   10318: # Have a temporary directory for convenience.  Make it in the build tree
                   10319: # simply because there is no reason against having it here, and in addition,
                   10320: # creating and moving files from /tmp can sometimes cause problems.
                   10321: # Hook for its removal unless debugging.
                   10322: # Note that there is a small window in which the directory will not be cleaned:
                   10323: # after its creation but before its name has been assigned to `$tmp'.
                   10324: $debug ||
                   10325: {
1.57      bertrand 10326:   tmp= ac_tmp=
1.1       bertrand 10327:   trap 'exit_status=$?
1.57      bertrand 10328:   : "${ac_tmp:=$tmp}"
                   10329:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10330: ' 0
1.15      bertrand 10331:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10332: }
                   10333: # Create a (secure) tmp directory for tmp files.
                   10334: 
                   10335: {
                   10336:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10337:   test -d "$tmp"
1.1       bertrand 10338: }  ||
                   10339: {
                   10340:   tmp=./conf$$-$RANDOM
                   10341:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10342: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10343: ac_tmp=$tmp
1.15      bertrand 10344: 
                   10345: # Set up the scripts for CONFIG_FILES section.
                   10346: # No need to generate them if there are no CONFIG_FILES.
                   10347: # This happens for instance with `./config.status config.h'.
                   10348: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10349: 
1.1       bertrand 10350: 
1.15      bertrand 10351: ac_cr=`echo X | tr X '\015'`
                   10352: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10353: # But we know of no other shell where ac_cr would be empty at this
                   10354: # point, so we can use a bashism as a fallback.
                   10355: if test "x$ac_cr" = x; then
                   10356:   eval ac_cr=\$\'\\r\'
                   10357: fi
                   10358: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10359: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10360:   ac_cs_awk_cr='\\r'
1.15      bertrand 10361: else
                   10362:   ac_cs_awk_cr=$ac_cr
                   10363: fi
1.1       bertrand 10364: 
1.57      bertrand 10365: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10366: _ACEOF
                   10367: 
                   10368: 
1.15      bertrand 10369: {
                   10370:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10371:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10372:   echo "_ACEOF"
                   10373: } >conf$$subs.sh ||
1.36      bertrand 10374:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10375: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10376: ac_delim='%!_!# '
                   10377: for ac_last_try in false false false false false :; do
1.15      bertrand 10378:   . ./conf$$subs.sh ||
1.36      bertrand 10379:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10380: 
1.15      bertrand 10381:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10382:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10383:     break
                   10384:   elif $ac_last_try; then
1.36      bertrand 10385:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10386:   else
                   10387:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10388:   fi
                   10389: done
1.15      bertrand 10390: rm -f conf$$subs.sh
1.1       bertrand 10391: 
1.15      bertrand 10392: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10393: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10394: _ACEOF
                   10395: sed -n '
                   10396: h
                   10397: s/^/S["/; s/!.*/"]=/
                   10398: p
                   10399: g
                   10400: s/^[^!]*!//
                   10401: :repl
                   10402: t repl
                   10403: s/'"$ac_delim"'$//
                   10404: t delim
                   10405: :nl
                   10406: h
                   10407: s/\(.\{148\}\)..*/\1/
                   10408: t more1
                   10409: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10410: p
                   10411: n
                   10412: b repl
                   10413: :more1
                   10414: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10415: p
                   10416: g
                   10417: s/.\{148\}//
                   10418: t nl
                   10419: :delim
                   10420: h
                   10421: s/\(.\{148\}\)..*/\1/
                   10422: t more2
                   10423: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10424: p
                   10425: b
                   10426: :more2
                   10427: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10428: p
                   10429: g
                   10430: s/.\{148\}//
                   10431: t delim
                   10432: ' <conf$$subs.awk | sed '
                   10433: /^[^""]/{
                   10434:   N
                   10435:   s/\n//
                   10436: }
                   10437: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10438: rm -f conf$$subs.awk
                   10439: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10440: _ACAWK
1.57      bertrand 10441: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10442:   for (key in S) S_is_set[key] = 1
                   10443:   FS = ""
1.1       bertrand 10444: 
1.15      bertrand 10445: }
                   10446: {
                   10447:   line = $ 0
                   10448:   nfields = split(line, field, "@")
                   10449:   substed = 0
                   10450:   len = length(field[1])
                   10451:   for (i = 2; i < nfields; i++) {
                   10452:     key = field[i]
                   10453:     keylen = length(key)
                   10454:     if (S_is_set[key]) {
                   10455:       value = S[key]
                   10456:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10457:       len += length(value) + length(field[++i])
                   10458:       substed = 1
                   10459:     } else
                   10460:       len += 1 + keylen
                   10461:   }
1.1       bertrand 10462: 
1.15      bertrand 10463:   print line
                   10464: }
1.1       bertrand 10465: 
1.15      bertrand 10466: _ACAWK
1.14      bertrand 10467: _ACEOF
1.15      bertrand 10468: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10469: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10470:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10471: else
                   10472:   cat
1.57      bertrand 10473: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10474:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10475: _ACEOF
                   10476: 
1.36      bertrand 10477: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10478: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10479: # trailing colons and then remove the whole line if VPATH becomes empty
                   10480: # (actually we leave an empty line to preserve line numbers).
                   10481: if test "x$srcdir" = x.; then
1.36      bertrand 10482:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10483: h
                   10484: s///
                   10485: s/^/:/
                   10486: s/[     ]*$/:/
                   10487: s/:\$(srcdir):/:/g
                   10488: s/:\${srcdir}:/:/g
                   10489: s/:@srcdir@:/:/g
                   10490: s/^:*//
1.1       bertrand 10491: s/:*$//
1.36      bertrand 10492: x
                   10493: s/\(=[  ]*\).*/\1/
                   10494: G
                   10495: s/\n//
1.1       bertrand 10496: s/^[^=]*=[  ]*$//
                   10497: }'
                   10498: fi
                   10499: 
1.15      bertrand 10500: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10501: fi # test -n "$CONFIG_FILES"
                   10502: 
1.15      bertrand 10503: # Set up the scripts for CONFIG_HEADERS section.
                   10504: # No need to generate them if there are no CONFIG_HEADERS.
                   10505: # This happens for instance with `./config.status Makefile'.
                   10506: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10507: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10508: BEGIN {
                   10509: _ACEOF
                   10510: 
                   10511: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10512: # here-document in config.status, that substitutes the proper values into
                   10513: # config.h.in to produce config.h.
                   10514: 
                   10515: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10516: # handling of long lines.
                   10517: ac_delim='%!_!# '
                   10518: for ac_last_try in false false :; do
1.57      bertrand 10519:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10520:   if test -z "$ac_tt"; then
1.15      bertrand 10521:     break
                   10522:   elif $ac_last_try; then
1.36      bertrand 10523:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10524:   else
                   10525:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10526:   fi
                   10527: done
                   10528: 
                   10529: # For the awk script, D is an array of macro values keyed by name,
                   10530: # likewise P contains macro parameters if any.  Preserve backslash
                   10531: # newline sequences.
                   10532: 
                   10533: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10534: sed -n '
                   10535: s/.\{148\}/&'"$ac_delim"'/g
                   10536: t rset
                   10537: :rset
                   10538: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10539: t def
                   10540: d
                   10541: :def
                   10542: s/\\$//
                   10543: t bsnl
                   10544: s/["\\]/\\&/g
                   10545: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10546: D["\1"]=" \3"/p
                   10547: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10548: d
                   10549: :bsnl
                   10550: s/["\\]/\\&/g
                   10551: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10552: D["\1"]=" \3\\\\\\n"\\/p
                   10553: t cont
                   10554: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10555: t cont
                   10556: d
                   10557: :cont
                   10558: n
                   10559: s/.\{148\}/&'"$ac_delim"'/g
                   10560: t clear
                   10561: :clear
                   10562: s/\\$//
                   10563: t bsnlc
                   10564: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10565: d
                   10566: :bsnlc
                   10567: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10568: b cont
                   10569: ' <confdefs.h | sed '
                   10570: s/'"$ac_delim"'/"\\\
                   10571: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10572: 
                   10573: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10574:   for (key in D) D_is_set[key] = 1
                   10575:   FS = ""
                   10576: }
                   10577: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10578:   line = \$ 0
                   10579:   split(line, arg, " ")
                   10580:   if (arg[1] == "#") {
                   10581:     defundef = arg[2]
                   10582:     mac1 = arg[3]
                   10583:   } else {
                   10584:     defundef = substr(arg[1], 2)
                   10585:     mac1 = arg[2]
                   10586:   }
                   10587:   split(mac1, mac2, "(") #)
                   10588:   macro = mac2[1]
                   10589:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10590:   if (D_is_set[macro]) {
                   10591:     # Preserve the white space surrounding the "#".
                   10592:     print prefix "define", macro P[macro] D[macro]
                   10593:     next
                   10594:   } else {
                   10595:     # Replace #undef with comments.  This is necessary, for example,
                   10596:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10597:     # on some systems where configure will not decide to define it.
                   10598:     if (defundef == "undef") {
                   10599:       print "/*", prefix defundef, macro, "*/"
                   10600:       next
                   10601:     }
                   10602:   }
                   10603: }
                   10604: { print }
                   10605: _ACAWK
                   10606: _ACEOF
                   10607: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10608:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10609: fi # test -n "$CONFIG_HEADERS"
                   10610: 
1.1       bertrand 10611: 
1.15      bertrand 10612: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10613: shift
                   10614: for ac_tag
1.1       bertrand 10615: do
                   10616:   case $ac_tag in
                   10617:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10618:   esac
                   10619:   case $ac_mode$ac_tag in
                   10620:   :[FHL]*:*);;
1.57      bertrand 10621:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10622:   :[FH]-) ac_tag=-:-;;
                   10623:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10624:   esac
                   10625:   ac_save_IFS=$IFS
                   10626:   IFS=:
                   10627:   set x $ac_tag
                   10628:   IFS=$ac_save_IFS
                   10629:   shift
                   10630:   ac_file=$1
                   10631:   shift
                   10632: 
                   10633:   case $ac_mode in
                   10634:   :L) ac_source=$1;;
                   10635:   :[FH])
                   10636:     ac_file_inputs=
                   10637:     for ac_f
                   10638:     do
                   10639:       case $ac_f in
1.57      bertrand 10640:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10641:       *) # Look for the file first in the build tree, then in the source tree
                   10642:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10643:     # because $ac_f cannot contain `:'.
                   10644:     test -f "$ac_f" ||
                   10645:       case $ac_f in
                   10646:       [\\/$]*) false;;
                   10647:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10648:       esac ||
1.57      bertrand 10649:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10650:       esac
1.15      bertrand 10651:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10652:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10653:     done
                   10654: 
                   10655:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10656:     # use $as_me), people would be surprised to read:
                   10657:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10658:     configure_input='Generated from '`
                   10659:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10660:    `' by configure.'
1.1       bertrand 10661:     if test x"$ac_file" != x-; then
                   10662:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10663:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10664: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10665:     fi
1.15      bertrand 10666:     # Neutralize special characters interpreted by sed in replacement strings.
                   10667:     case $configure_input in #(
                   10668:     *\&* | *\|* | *\\* )
                   10669:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10670:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10671:     *) ac_sed_conf_input=$configure_input;;
                   10672:     esac
1.1       bertrand 10673: 
                   10674:     case $ac_tag in
1.57      bertrand 10675:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10676:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10677:     esac
                   10678:     ;;
                   10679:   esac
                   10680: 
                   10681:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10682: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10683:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10684:     X"$ac_file" : 'X\(//\)$' \| \
                   10685:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10686: $as_echo X"$ac_file" |
1.1       bertrand 10687:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10688:        s//\1/
                   10689:        q
                   10690:      }
                   10691:      /^X\(\/\/\)[^/].*/{
                   10692:        s//\1/
                   10693:        q
                   10694:      }
                   10695:      /^X\(\/\/\)$/{
                   10696:        s//\1/
                   10697:        q
                   10698:      }
                   10699:      /^X\(\/\).*/{
                   10700:        s//\1/
                   10701:        q
                   10702:      }
                   10703:      s/.*/./; q'`
1.15      bertrand 10704:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10705:   ac_builddir=.
                   10706: 
                   10707: case "$ac_dir" in
                   10708: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10709: *)
1.15      bertrand 10710:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10711:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10712:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10713:   case $ac_top_builddir_sub in
                   10714:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10715:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10716:   esac ;;
                   10717: esac
                   10718: ac_abs_top_builddir=$ac_pwd
                   10719: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10720: # for backward compatibility:
                   10721: ac_top_builddir=$ac_top_build_prefix
                   10722: 
                   10723: case $srcdir in
                   10724:   .)  # We are building in place.
                   10725:     ac_srcdir=.
                   10726:     ac_top_srcdir=$ac_top_builddir_sub
                   10727:     ac_abs_top_srcdir=$ac_pwd ;;
                   10728:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10729:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10730:     ac_top_srcdir=$srcdir
                   10731:     ac_abs_top_srcdir=$srcdir ;;
                   10732:   *) # Relative name.
                   10733:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10734:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10735:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10736: esac
                   10737: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10738: 
                   10739: 
                   10740:   case $ac_mode in
                   10741:   :F)
                   10742:   #
                   10743:   # CONFIG_FILE
                   10744:   #
                   10745: 
                   10746:   case $INSTALL in
                   10747:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10748:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10749:   esac
                   10750:   ac_MKDIR_P=$MKDIR_P
                   10751:   case $MKDIR_P in
                   10752:   [\\/$]* | ?:[\\/]* ) ;;
                   10753:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10754:   esac
                   10755: _ACEOF
                   10756: 
1.15      bertrand 10757: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10758: # If the template does not know about datarootdir, expand it.
                   10759: # FIXME: This hack should be removed a few years after 2.60.
                   10760: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10761: ac_sed_dataroot='
                   10762: /datarootdir/ {
1.1       bertrand 10763:   p
                   10764:   q
                   10765: }
                   10766: /@datadir@/p
                   10767: /@docdir@/p
                   10768: /@infodir@/p
                   10769: /@localedir@/p
1.15      bertrand 10770: /@mandir@/p'
                   10771: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10772: *datarootdir*) ac_datarootdir_seen=yes;;
                   10773: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10774:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10775: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10776: _ACEOF
1.15      bertrand 10777: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10778:   ac_datarootdir_hack='
                   10779:   s&@datadir@&$datadir&g
                   10780:   s&@docdir@&$docdir&g
                   10781:   s&@infodir@&$infodir&g
                   10782:   s&@localedir@&$localedir&g
                   10783:   s&@mandir@&$mandir&g
1.15      bertrand 10784:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10785: esac
                   10786: _ACEOF
                   10787: 
                   10788: # Neutralize VPATH when `$srcdir' = `.'.
                   10789: # Shell code in configure.ac might set extrasub.
                   10790: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10791: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10792: ac_sed_extra="$ac_vpsub
1.1       bertrand 10793: $extrasub
                   10794: _ACEOF
1.15      bertrand 10795: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10796: :t
                   10797: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10798: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10799: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10800: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10801: s&@srcdir@&$ac_srcdir&;t t
                   10802: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10803: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10804: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10805: s&@builddir@&$ac_builddir&;t t
                   10806: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10807: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10808: s&@INSTALL@&$ac_INSTALL&;t t
                   10809: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10810: $ac_datarootdir_hack
1.15      bertrand 10811: "
1.57      bertrand 10812: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10813:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10814: 
                   10815: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10816:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10817:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10818:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10819:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10820: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10821: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10822: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10823: 
1.57      bertrand 10824:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10825:   case $ac_file in
1.57      bertrand 10826:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10827:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10828:   esac \
1.36      bertrand 10829:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10830:  ;;
                   10831:   :H)
                   10832:   #
                   10833:   # CONFIG_HEADER
                   10834:   #
                   10835:   if test x"$ac_file" != x-; then
1.15      bertrand 10836:     {
                   10837:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10838:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10839:     } >"$ac_tmp/config.h" \
1.36      bertrand 10840:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10841:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10842:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10843: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10844:     else
1.15      bertrand 10845:       rm -f "$ac_file"
1.57      bertrand 10846:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10847:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10848:     fi
                   10849:   else
1.15      bertrand 10850:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10851:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10852:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10853:   fi
1.15      bertrand 10854: # Compute "$ac_file"'s index in $config_headers.
                   10855: _am_arg="$ac_file"
1.1       bertrand 10856: _am_stamp_count=1
                   10857: for _am_header in $config_headers :; do
                   10858:   case $_am_header in
                   10859:     $_am_arg | $_am_arg:* )
                   10860:       break ;;
                   10861:     * )
                   10862:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10863:   esac
                   10864: done
                   10865: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10866: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10867:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10868:     X"$_am_arg" : 'X\(//\)$' \| \
                   10869:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10870: $as_echo X"$_am_arg" |
1.1       bertrand 10871:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10872:        s//\1/
                   10873:        q
                   10874:      }
                   10875:      /^X\(\/\/\)[^/].*/{
                   10876:        s//\1/
                   10877:        q
                   10878:      }
                   10879:      /^X\(\/\/\)$/{
                   10880:        s//\1/
                   10881:        q
                   10882:      }
                   10883:      /^X\(\/\).*/{
                   10884:        s//\1/
                   10885:        q
                   10886:      }
                   10887:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10888:  ;;
                   10889: 
1.15      bertrand 10890:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10891: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10892:  ;;
                   10893:   esac
                   10894: 
                   10895: 
                   10896:   case $ac_file$ac_mode in
1.15      bertrand 10897:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10898:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10899:   # are listed without --file.  Let's play safe and only enable the eval
                   10900:   # if we detect the quoting.
                   10901:   case $CONFIG_FILES in
                   10902:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10903:   *)   set x $CONFIG_FILES ;;
                   10904:   esac
                   10905:   shift
                   10906:   for mf
                   10907:   do
                   10908:     # Strip MF so we end up with the name of the file.
                   10909:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10910:     # Check whether this is an Automake generated Makefile or not.
                   10911:     # We used to match only the files named `Makefile.in', but
                   10912:     # some people rename them; so instead we look at the file content.
                   10913:     # Grep'ing the first line is not enough: some people post-process
                   10914:     # each Makefile.in and add a new line on top of each file to say so.
                   10915:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10916:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10917:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10918:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10919: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10920:     X"$mf" : 'X\(//\)[^/]' \| \
                   10921:     X"$mf" : 'X\(//\)$' \| \
                   10922:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10923: $as_echo X"$mf" |
1.1       bertrand 10924:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10925:        s//\1/
                   10926:        q
                   10927:      }
                   10928:      /^X\(\/\/\)[^/].*/{
                   10929:        s//\1/
                   10930:        q
                   10931:      }
                   10932:      /^X\(\/\/\)$/{
                   10933:        s//\1/
                   10934:        q
                   10935:      }
                   10936:      /^X\(\/\).*/{
                   10937:        s//\1/
                   10938:        q
                   10939:      }
                   10940:      s/.*/./; q'`
1.15      bertrand 10941:     else
                   10942:       continue
                   10943:     fi
                   10944:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10945:     # from the Makefile without running `make'.
                   10946:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10947:     test -z "$DEPDIR" && continue
                   10948:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10949:     test -z "am__include" && continue
                   10950:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10951:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10952:     U=`sed -n 's/^U = //p' < "$mf"`
                   10953:     # Find all dependency output files, they are included files with
                   10954:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10955:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10956:     # expansion.
                   10957:     for file in `sed -n "
                   10958:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10959:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10960:       # Make sure the directory exists.
                   10961:       test -f "$dirpart/$file" && continue
                   10962:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10963: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10964:     X"$file" : 'X\(//\)[^/]' \| \
                   10965:     X"$file" : 'X\(//\)$' \| \
                   10966:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10967: $as_echo X"$file" |
1.1       bertrand 10968:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10969:        s//\1/
                   10970:        q
                   10971:      }
                   10972:      /^X\(\/\/\)[^/].*/{
                   10973:        s//\1/
                   10974:        q
                   10975:      }
                   10976:      /^X\(\/\/\)$/{
                   10977:        s//\1/
                   10978:        q
                   10979:      }
                   10980:      /^X\(\/\).*/{
                   10981:        s//\1/
                   10982:        q
                   10983:      }
                   10984:      s/.*/./; q'`
1.15      bertrand 10985:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10986:       # echo "creating $dirpart/$file"
                   10987:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10988:     done
                   10989:   done
1.15      bertrand 10990: }
1.1       bertrand 10991:  ;;
                   10992: 
                   10993:   esac
                   10994: done # for ac_tag
                   10995: 
                   10996: 
1.15      bertrand 10997: as_fn_exit 0
1.1       bertrand 10998: _ACEOF
                   10999: ac_clean_files=$ac_clean_files_save
                   11000: 
1.15      bertrand 11001: test $ac_write_fail = 0 ||
1.36      bertrand 11002:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11003: 
1.1       bertrand 11004: 
                   11005: # configure is writing to config.log, and then calls config.status.
                   11006: # config.status does its own redirection, appending to config.log.
                   11007: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11008: # by configure, so config.status won't be able to write to it; its
                   11009: # output is simply discarded.  So we exec the FD to /dev/null,
                   11010: # effectively closing config.log, so it can be properly (re)opened and
                   11011: # appended to by config.status.  When coming back to configure, we
                   11012: # need to make the FD available again.
                   11013: if test "$no_create" != yes; then
                   11014:   ac_cs_success=:
                   11015:   ac_config_status_args=
                   11016:   test "$silent" = yes &&
                   11017:     ac_config_status_args="$ac_config_status_args --quiet"
                   11018:   exec 5>/dev/null
                   11019:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11020:   exec 5>>config.log
                   11021:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11022:   # would make configure fail if this is the last instruction.
1.36      bertrand 11023:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11024: fi
                   11025: 
                   11026: #
                   11027: # CONFIG_SUBDIRS section.
                   11028: #
                   11029: if test "$no_recursion" != yes; then
                   11030: 
1.15      bertrand 11031:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11032:   # so they do not pile up.
1.1       bertrand 11033:   ac_sub_configure_args=
                   11034:   ac_prev=
                   11035:   eval "set x $ac_configure_args"
                   11036:   shift
                   11037:   for ac_arg
                   11038:   do
                   11039:     if test -n "$ac_prev"; then
                   11040:       ac_prev=
                   11041:       continue
                   11042:     fi
                   11043:     case $ac_arg in
                   11044:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11045:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11046:       ac_prev=cache_file ;;
                   11047:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11048:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11049:     | --c=*)
                   11050:       ;;
                   11051:     --config-cache | -C)
                   11052:       ;;
                   11053:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11054:       ac_prev=srcdir ;;
                   11055:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11056:       ;;
                   11057:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11058:       ac_prev=prefix ;;
                   11059:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11060:       ;;
1.15      bertrand 11061:     --disable-option-checking)
                   11062:       ;;
1.1       bertrand 11063:     *)
                   11064:       case $ac_arg in
1.15      bertrand 11065:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11066:       esac
1.15      bertrand 11067:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11068:     esac
                   11069:   done
                   11070: 
                   11071:   # Always prepend --prefix to ensure using the same prefix
                   11072:   # in subdir configurations.
                   11073:   ac_arg="--prefix=$prefix"
                   11074:   case $ac_arg in
1.15      bertrand 11075:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11076:   esac
                   11077:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11078: 
                   11079:   # Pass --silent
                   11080:   if test "$silent" = yes; then
                   11081:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11082:   fi
                   11083: 
1.15      bertrand 11084:   # Always prepend --disable-option-checking to silence warnings, since
                   11085:   # different subdirs can have different --enable and --with options.
                   11086:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11087: 
1.1       bertrand 11088:   ac_popdir=`pwd`
                   11089:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11090: 
                   11091:     # Do not complain, so a configure script can configure whichever
                   11092:     # parts of a large source tree are present.
                   11093:     test -d "$srcdir/$ac_dir" || continue
                   11094: 
                   11095:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11096:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11097:     $as_echo "$ac_msg" >&6
                   11098:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11099:     ac_builddir=.
                   11100: 
                   11101: case "$ac_dir" in
                   11102: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11103: *)
1.15      bertrand 11104:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11105:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11106:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11107:   case $ac_top_builddir_sub in
                   11108:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11109:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11110:   esac ;;
                   11111: esac
                   11112: ac_abs_top_builddir=$ac_pwd
                   11113: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11114: # for backward compatibility:
                   11115: ac_top_builddir=$ac_top_build_prefix
                   11116: 
                   11117: case $srcdir in
                   11118:   .)  # We are building in place.
                   11119:     ac_srcdir=.
                   11120:     ac_top_srcdir=$ac_top_builddir_sub
                   11121:     ac_abs_top_srcdir=$ac_pwd ;;
                   11122:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11123:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11124:     ac_top_srcdir=$srcdir
                   11125:     ac_abs_top_srcdir=$srcdir ;;
                   11126:   *) # Relative name.
                   11127:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11128:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11129:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11130: esac
                   11131: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11132: 
                   11133: 
                   11134:     cd "$ac_dir"
                   11135: 
                   11136:     # Check for guested configure; otherwise get Cygnus style configure.
                   11137:     if test -f "$ac_srcdir/configure.gnu"; then
                   11138:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11139:     elif test -f "$ac_srcdir/configure"; then
                   11140:       ac_sub_configure=$ac_srcdir/configure
                   11141:     elif test -f "$ac_srcdir/configure.in"; then
                   11142:       # This should be Cygnus configure.
                   11143:       ac_sub_configure=$ac_aux_dir/configure
                   11144:     else
1.15      bertrand 11145:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11146: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11147:       ac_sub_configure=
                   11148:     fi
                   11149: 
                   11150:     # The recursion is here.
                   11151:     if test -n "$ac_sub_configure"; then
                   11152:       # Make the cache file name correct relative to the subdirectory.
                   11153:       case $cache_file in
                   11154:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11155:       *) # Relative name.
                   11156:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11157:       esac
                   11158: 
1.15      bertrand 11159:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   11160: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 11161:       # The eval makes quoting arguments work.
                   11162:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11163:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11164:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11165:     fi
                   11166: 
                   11167:     cd "$ac_popdir"
                   11168:   done
                   11169: fi
1.15      bertrand 11170: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11171:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11172: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11173: fi
1.1       bertrand 11174: 

CVSweb interface <joel.bertrand@systella.fr>