configure.pl (ed9d7cbe) configure.pl (789d489d)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 68 unchanged lines hidden (view full) ---

77$main::OO_SDK_CPP_HOME = "";
78$main::cppName = "gcc";
79$main::cppVersion = "4.0.1";
80if ( $main::operatingSystem =~ m/solaris/ )
81{
82 $main::cppName = "CC";
83 $main::cppVersion = "5.2";
84}
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 68 unchanged lines hidden (view full) ---

77$main::OO_SDK_CPP_HOME = "";
78$main::cppName = "gcc";
79$main::cppVersion = "4.0.1";
80if ( $main::operatingSystem =~ m/solaris/ )
81{
82 $main::cppName = "CC";
83 $main::cppVersion = "5.2";
84}
85if ( $main::operatingSystem =~ m/darwin/ )
86{
87 $main::cppName = "clang";
88 $main::cppVersion = "4.2";
89}
85$main::OO_SDK_CC_55_OR_HIGHER = "";
90$main::OO_SDK_CC_55_OR_HIGHER = "";
86$main::OO_SDK_CPP_HOME_SUGGESTION = searchprog($main::cppName);
91if ( $main::operatingSystem =~ m/darwin/ )
92{
93 $clangpath = `xcrun -f clang++`;
94 $main::OO_SDK_CPP_HOME_SUGGESTION = substr($clangpath, 0, rindex($clangpath, "/"));
95} else {
96 $main::OO_SDK_CPP_HOME_SUGGESTION = searchprog($main::cppName);
97}
87
88$main::OO_SDK_JAVA_HOME = "";
89$main::OO_SDK_JAVA_BIN_DIR = "bin";
90if ( $main::operatingSystem =~ m/darwin/ )
91{
92 $main::OO_SDK_JAVA_BIN_DIR="Commands";
93}
94$main::OO_SDK_JAVA_HOME_SUGGESTION = searchprog("javac");

--- 248 unchanged lines hidden (view full) ---

343$main::correctVersion = 0;
344while ( (!$main::correctVersion) &&
345 ((! -d "$main::OO_SDK_CPP_HOME" ) ||
346 ((-d "$main::OO_SDK_CPP_HOME") && (! -e "$main::OO_SDK_CPP_HOME/$main::cpp"))) )
347{
348 print " C++ compilers where for example a language binding exist:\n";
349 print " - Solaris, Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 or higher\n";
350 print " - Linux, GNU C++ compiler, gcc version 4.0.1 or higher\n";
98
99$main::OO_SDK_JAVA_HOME = "";
100$main::OO_SDK_JAVA_BIN_DIR = "bin";
101if ( $main::operatingSystem =~ m/darwin/ )
102{
103 $main::OO_SDK_JAVA_BIN_DIR="Commands";
104}
105$main::OO_SDK_JAVA_HOME_SUGGESTION = searchprog("javac");

--- 248 unchanged lines hidden (view full) ---

354$main::correctVersion = 0;
355while ( (!$main::correctVersion) &&
356 ((! -d "$main::OO_SDK_CPP_HOME" ) ||
357 ((-d "$main::OO_SDK_CPP_HOME") && (! -e "$main::OO_SDK_CPP_HOME/$main::cpp"))) )
358{
359 print " C++ compilers where for example a language binding exist:\n";
360 print " - Solaris, Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 or higher\n";
361 print " - Linux, GNU C++ compiler, gcc version 4.0.1 or higher\n";
351 print " - MacOS, GNU C++ compiler, gcc version 4.0.1 or higher\n";
352 print " Enter the directory of the C++ compiler, the directory\n";
353 print " where the compiler is located (optional) [$main::OO_SDK_CPP_HOME_SUGGESTION]: ";
354
355 $main::OO_SDK_CPP_HOME = readStdIn();
356 chop($main::OO_SDK_CPP_HOME);
357 if ( $main::OO_SDK_CPP_HOME eq "" )
362 print " - MacOS 64bit, Apple LLVM version 4.2 (clang-425.0.28) or higher\n";
363 print " on MacOS auto detected using xcrun -f clang'\n";
364
365 if ( $main::operatingSystem =~ m/darwin/ )
358 {
366 {
367 # xcrun is used to find the correct clang compiler, just print the result as information
359 $main::OO_SDK_CPP_HOME = $main::OO_SDK_CPP_HOME_SUGGESTION;
368 $main::OO_SDK_CPP_HOME = $main::OO_SDK_CPP_HOME_SUGGESTION;
369 print " Used clang compiler: $main::OO_SDK_CPP_HOME\n";
370 } else
371 {
372 print " Enter the directory of the C++ compiler, the directory\n";
373 print " where the compiler is located (optional) [$main::OO_SDK_CPP_HOME_SUGGESTION]: ";
374
375 $main::OO_SDK_CPP_HOME = readStdIn();
376 chop($main::OO_SDK_CPP_HOME);
377 if ( $main::OO_SDK_CPP_HOME eq "" )
378 {
379 $main::OO_SDK_CPP_HOME = $main::OO_SDK_CPP_HOME_SUGGESTION;
380 }
360 }
361
381 }
382
362 if ( ! $main::OO_SDK_CPP_HOME eq "" )
383 if ( (!$main::operatingSystem =~ m/darwin/) && (! $main::OO_SDK_CPP_HOME eq "") )
363 {
364 if ( (! -d "$main::OO_SDK_CPP_HOME") ||
365 ((-d "$main::OO_SDK_CPP_HOME") && (! -e "$main::OO_SDK_CPP_HOME/$main::cppName")) )
366 {
367 print " Error: Could not find directory '$main::OO_SDK_CPP_HOME'.\n";
368 if ( skipChoice("C++ compiler") == 1 )
369 {
370 $main::correctVersion = 1;

--- 425 unchanged lines hidden ---
384 {
385 if ( (! -d "$main::OO_SDK_CPP_HOME") ||
386 ((-d "$main::OO_SDK_CPP_HOME") && (! -e "$main::OO_SDK_CPP_HOME/$main::cppName")) )
387 {
388 print " Error: Could not find directory '$main::OO_SDK_CPP_HOME'.\n";
389 if ( skipChoice("C++ compiler") == 1 )
390 {
391 $main::correctVersion = 1;

--- 425 unchanged lines hidden ---